I have 2 tables that are related only by an ENUMLIST that points to the other table as a lookup
While @LeventK has provided an amazing solution here:
it just seems to me that there should be a really simple work-around to achieve this โyellowโ column.
Solved! Go to Solution.
@Riki_Armstrong
Have you tried with:
SELECT(House[House],IN([_THISROW].[Pets],[Pets]))
@Riki_Armstrong
Have you tried with:
SELECT(House[House],IN([_THISROW].[Pets],[Pets]))
@Riki_Armstrong
Take a look at this pls.
This is brilliant, thank you. A very simple solution to link two tables with a reversible one to many link.
I named my example tables and key fields the same name which might be confusing to some so here is the solution assuming table structure:
Table House
Key field - House_name
EnumList link to Pets - Pets_owned
Table Pets
Key_field - Pets_type
This virtual column to reverse link the houses:
SELECT(House[House_name], IN([_THISROW].[Pets_type],[Pets_owned]))
In words:
The list of values of column โHouse_nameโ
โฆfrom rows of table โHouseโ
โฆwhere this condition is true: ((The value of โPets_typeโ from the row referenced by โpets_typeโ)
is one of the values in the list (The value of column โPets_ownedโ))
User | Count |
---|---|
15 | |
12 | |
9 | |
8 | |
4 |