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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
I'm trying to filter a measure to only show the IDs that are not found in a related table.
What I have currently:
Solved! Go to Solution.
Hi @Anonymous ,
Based on your description, I have created a simple sample:
Please try:
Measure = IF(NOT( MAX('Main Table'[Primary Key ID]) in SELECTCOLUMNS(ALL('Related Table'),"ID",[ID])),1)
Apply it to the visual:
If you need a table:
Table = EXCEPT(VALUES('Main Table'[Primary Key ID]),VALUES('Related Table'[ID]))
Output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Based on your description, I have created a simple sample:
Please try:
Measure = IF(NOT( MAX('Main Table'[Primary Key ID]) in SELECTCOLUMNS(ALL('Related Table'),"ID",[ID])),1)
Apply it to the visual:
If you need a table:
Table = EXCEPT(VALUES('Main Table'[Primary Key ID]),VALUES('Related Table'[ID]))
Output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
What is the result of the measure you've posted? You might need to change this section since I'm guessing that the ID field does not contain the text 'Sales Engineering Request'
NOT(Opportunity[OPPORTUNTIY_ID] IN 'Sales Engineering Request'
If the field you are looking for is a related table, you can get the value using RELATED:
https://learn.microsoft.com/en-us/dax/related-function-dax
Please accept as solution if this answers the question- thanks!
User | Count |
---|---|
14 | |
10 | |
7 | |
6 | |
5 |
User | Count |
---|---|
30 | |
19 | |
12 | |
7 | |
5 |