Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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]) ) )
User | Count |
---|---|
53 | |
35 | |
20 | |
16 | |
15 |
User | Count |
---|---|
94 | |
72 | |
30 | |
22 | |
16 |