This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi all!
I've got this matrix based on Employees. Each employee can be in charge of multiple businesses, and each business has it's own Risk-level.
Notice that Person B has a blank cell. I want the Risk-column to specificy how many non-blanks each Person has.
When the matrix has been collapsed on Employee, it should read:
Person A | 2
Person B | 1
Person C | 2
Is this possible?
Solved! Go to Solution.
Hi @Anonymous
You can use the below Dax Expression.
Risk m = IF( ISFILTERED(YourTable[Business]), MAX(YourTable[Risk]), DISTINCTCOUNTNOBLANK(YourTable[Risk]))
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Can you provide a data sample?
Many Thanks
Mariusz
Employee, Business, Risk
Person A, Business X, High
Person A, Business Y, Low
Person B, Business W,,
Person B, Business O, Medium
Comma error, fixed.
Hi @Anonymous
You can use the below Dax Expression.
Risk m = IF( ISFILTERED(YourTable[Business]), MAX(YourTable[Risk]), DISTINCTCOUNTNOBLANK(YourTable[Risk]))
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 29 | |
| 29 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 39 | |
| 33 | |
| 24 | |
| 23 |