Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I have two tables Table1 & unrelated Table2
a common 'ID' column exists in both tables
The only use of table2 is for a slicer built over it.
I need to calculate a new column in Table1 called 'Match' that should have the value "True"
only if the same ID was selected in the slicer.
obviously, I can't use the RELATED function because the tables have no relationship,
Tried that with no success:
Solved! Go to Solution.
Hi @Adidas ,
Check the formula.
Measure = IF(NOT(ISFILTERED('Table (2)'[Id])),FALSE(),IF(SELECTEDVALUE('Table'[Id]) in VALUES('Table (2)'[Id]),TRUE(),FALSE()))
Result would be shown as below.
Best Regards,
Jay
Hi @Adidas ,
Check the formula.
Measure = IF(NOT(ISFILTERED('Table (2)'[Id])),FALSE(),IF(SELECTEDVALUE('Table'[Id]) in VALUES('Table (2)'[Id]),TRUE(),FALSE()))
Result would be shown as below.
Best Regards,
Jay
You can simulate a relationship between two unrelated tables by using the TREATAS() function
@Adidas , Try a measure like
Match = CALCULATE(COUNTROWS(Table2), FILTER(Table2, Table2[id] = max(Table1[ID]) )) //better to put row context using values
a new column like
Match = CALCULATE(COUNTROWS(Table2), FILTER(Table2, Table2[id] = (Table1[ID]) ))
Refer how to copy values from one table to another table as column -https://www.youtube.com/watch?v=czNHt7UXIe8
Thanks, @amitchandak ,
unfortunately, both suggestions for measure and column didn't work for me,
still, it ignores the slicer's selections
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 57 | |
| 43 | |
| 41 | |
| 22 | |
| 17 |
| User | Count |
|---|---|
| 183 | |
| 114 | |
| 93 | |
| 62 | |
| 45 |