Forum Discussion
jimpatel
Post Patron
3 years agoVlookup
Hi, Thanks for looking at my post. I have 2 tables named as table 1 and table 2 and unfortunately i cant link those two tables because repeatation of part numbers. Issue is in table 1, i wanted to ...
- 3 years ago
Thats fantastic. Thanks a lot for this formula. Much appreciated.
What if instead of "if there are multiple different values in column 5 for the same part number, this will include them all in a comma separated list" , if any row have "YES" in column 5 then answer should be "YES". Is this something we can add in this DAX formula please?
johnt75
Super User
3 years agotry
col 5 has yes =
VAR PartNumber = 'table 1'[part number]
RETURN
IF (
"YES"
IN CALCULATETABLE (
VALUES ( 'table 2'[column 5] ),
TREATAS ( { PartNumber }, 'table 2'[part number] )
),
"YES",
"NO"
)