Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Above is a screenshot of a file available at https://drive.google.com/file/d/1mc5nLhZwJAIrlg_P1fL5XwkzAmQloGqh/view?usp=sharing
I have my Sales Header, Sales Line and Log tables and I'm looking to create a measure whereby I get a match between the CQ number in the Sales Header and Line tables but not in the Log table. So in the example above, the measure would return 2 as CQ000033 is not listed in the Log table.
Can someone help with how I can go about achieving this please?
Solved! Go to Solution.
Hi @Tob_P ,
First of all, many thanks to @AndyEagleton for your very quick and effective replies.
Based on my testing, please try the following methods as workaround:
1.Create the simple table.
2.Create the new measure to get a match between three table.
Measure =
VAR SalesHeaderCQ = DISTINCT('Sales Header'[No])
VAR SalesLineCQ = DISTINCT('Sales Line'[No])
VAR LogCQ = DISTINCT('Log'[No])
VAR IntersectCQ = INTERSECT(SalesHeaderCQ, SalesLineCQ)
VAR ResultCQ = INTERSECT(LogCQ, IntersectCQ)
RETURN COUNTROWS(ResultCQ)
3.Drag the measure into the card visual. The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Tob_P ,
First of all, many thanks to @AndyEagleton for your very quick and effective replies.
Based on my testing, please try the following methods as workaround:
1.Create the simple table.
2.Create the new measure to get a match between three table.
Measure =
VAR SalesHeaderCQ = DISTINCT('Sales Header'[No])
VAR SalesLineCQ = DISTINCT('Sales Line'[No])
VAR LogCQ = DISTINCT('Log'[No])
VAR IntersectCQ = INTERSECT(SalesHeaderCQ, SalesLineCQ)
VAR ResultCQ = INTERSECT(LogCQ, IntersectCQ)
RETURN COUNTROWS(ResultCQ)
3.Drag the measure into the card visual. The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you both for your replies and suggestions - went with the variable option and it worked a treat!
Thanks again.
Somthing like this might work:
COUNTROWS( EXCEPT ( INTERSECT( VALUES(Header[CQ]), VALUES(Lines[CQ]) ), VALUES(Log[CQ]) ) )
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 10 | |
| 10 | |
| 8 | |
| 8 |