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
Matrix below shows day number as columns, and customers by row. The values are simply a count of the calls.
I
I need the values to show either a 1 or a 0 depending on if there are values in that cell. so when Count(NID) is blank, then 0 ELSE 1.
Then the totals at the bottom of the matrix should sum up the 1s down the column,
Any ideas?
Solved! Go to Solution.
hi @Anonymous
Try this
Measure =
IF (
HASONEFILTER ( table1[Customer] ),
IF ( COUNT ( Table1[NID] ) > 0, 1, 0 ),
SUMX (
VALUES ( table1[Customer] ),
CALCULATE ( IF ( COUNT ( Table1[NID] ) > 0, 1, 0 ) )
)
)
@Anonymous
Give this MEASURE a shot
Measure=
IF (
HASONEFILTER ( table1[Customer] ),
IF ( COUNT ( Table1[NID] ) > 0, 1 ),
SUMX (
VALUES ( table1[Customer] ),
CALCULATE ( IF ( COUNT ( Table1[NID] ) > 0, 1 ) )
)
)
Brilliant That worked! Any idea how to populate the rest of the matrix with 0s where there is no value?
hi @Anonymous
Try this
Measure =
IF (
HASONEFILTER ( table1[Customer] ),
IF ( COUNT ( Table1[NID] ) > 0, 1, 0 ),
SUMX (
VALUES ( table1[Customer] ),
CALCULATE ( IF ( COUNT ( Table1[NID] ) > 0, 1, 0 ) )
)
)
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 |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 33 | |
| 23 | |
| 23 |