Forum Discussion
Calculated column or measure that returns values from Table A corresponding to certain values Tab B
Anonymous , You can try using a calculated column
CampagnaZefir =
IF (
RELATED(TableB[CodZef]) IN {"2025", "C25", "F25", "W25"},
1,
0
)
i can't find the column in RELATED()
- AilleryO1 year ago
Memorable Member
Hi,
Some liitle things to check :
1/ Do you have a relationship between the 2 tables in your model ?
2/ If no, you need to build the relationship in the model view before using related.
If yes, are you using the relationship from the table on the side 1 to the table on the side many, or from the table many to the table on the one side of relationship ?RELATED can be used from the many (*) to one (1), and if you are on the table being on the 1 side and want to get info from the table on the many side, then you'll need RELATEDTABLE as your results will/might not be unique.
In case it might not be clear, herre is an image 😉
Hope it help