Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
I have two tables;
TABLE 1 contains a list of items,
In TABLE 2, I want to result a "YES" IF,
Column 'SUB' = "ABC",
and IF
Column 'ITEM' matches data in TABLE 1, Column 'ITEM'
If the 'SUB' column in TABLE 1 does not match "ABC", I want the cell to remain blank.
Thanks in advance for your help.
T
TABLE 1 |
ITEM |
a |
b |
d |
e |
TABLE 2 | ||
sub | item | match |
abc | a | yes |
abc | b | yes |
abc | c | no |
abc | d | yes |
abc | e | yes |
efg | a | |
efg | b | |
efg | c | |
efg | d | |
efg | e |
Solved! Go to Solution.
@Anonymous
Try this column
Column = SWITCH ( TRUE (), [sub] <> "abc", BLANK (), [sub] = "abc" && COUNTROWS ( INTERSECT ( { [item] }, VALUES ( Table1[ITEM] ) ) ) > 0, "yes", "No" )
@Anonymous
Try this column
Column = SWITCH ( TRUE (), [sub] <> "abc", BLANK (), [sub] = "abc" && COUNTROWS ( INTERSECT ( { [item] }, VALUES ( Table1[ITEM] ) ) ) > 0, "yes", "No" )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |