Hi!
I have a table of Vehicles with a โVEH_UIDโ key & another table named "VehicleColorsโ which holds references and extra details to the vehicles table. The VehicleColors table also contains a โColorโ column which is an Enum of Refs with three possible values โREDโ,โBLACKโ & โWHITEโ.
Now, in the Vehicles table i have a VC (โRelated VehicleColorsโ) that holds a list of all the Refs made from the VehicleColors table to each Vehicle. What i want to achieve is to create another VC which will only hold refs from the VehicleColors table that contain only a certain color. I thought of using the โRelated VehicleColorsโ VC and then use SELECT() to filter it using a condition. For example, i want this new VC to hold VehicleColors refs of the โREDโ color. So hereโs what i thought but isnโt working:
Related VehicleColors formula is : REF_ROWS(โVehicleColorsโ, โVEH_COL_UIDโ)
Expression i came up with for RED_VehicleColors : SELECT([Related VehicleColors] , [Color] = โREDโ) but i get an error saying that itโs unable to find the Color column.
What am i missing here?
P.S. Iโm completely new to Appsheet & SQL like queries so please bare with me
Please post screenshots of the column lists (from Data >> Columns in the app editor) for the involved tables.
User | Count |
---|---|
33 | |
30 | |
30 | |
19 | |
17 |