Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi All,
I need help.
I need to write a DAX calculation that gives me the count of all 'ExceptionNames' from 'Main Table' only when the exception present in second custom table 'Eligible Exceptions'? Could you help?
Solved! Go to Solution.
Hi @pprasad2 ,
Based on your description, I created a sample file. You can use FIND or SEARCH for string comparison, and then count the column.
Column =
IF(
SUMX('Table',
FIND(
'Table'[Product],
Sheet2[Product]
,,0
)
) > 0,
CALCULATE(COUNT(Sheet2[Country])
,ALLEXCEPT(Sheet2,Sheet2[Product]
)))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @pprasad2 ,
Based on your description, I created a sample file. You can use FIND or SEARCH for string comparison, and then count the column.
Column =
IF(
SUMX('Table',
FIND(
'Table'[Product],
Sheet2[Product]
,,0
)
) > 0,
CALCULATE(COUNT(Sheet2[Country])
,ALLEXCEPT(Sheet2,Sheet2[Product]
)))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The one I used did not work. It errored out. so I am not sure the way I was doing right or not. I just need a mechanism/logic to do count count in main table for only those records that are have a same value in my exception table.
HI @pprasad2 ,
Can you elaborate more please? Is your DAX (which is specified in your query) giving you some error? Or there is some other issue you are facing?
Thanks,
Pragati
User | Count |
---|---|
81 | |
79 | |
70 | |
69 | |
54 |
User | Count |
---|---|
107 | |
99 | |
88 | |
79 | |
67 |