Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 54 | |
| 47 | |
| 38 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 82 | |
| 71 | |
| 38 | |
| 28 | |
| 25 |