Forum Discussion
Display zero instead of blank in matrix
Hi, you can obtain this view following these steps:
1.Create a new Table (Modeling-New Table)
Tablepr=Distinct(Table1[pr]
2. Related both tables
3. Create the Measure to Count IDs
CountIDs=Count(Table[id]) + 0
Ready
Matrix Visual
I ran into a similar situation today and part of the problem is everyone kept focusing on replacing null with 0 or blank with 0. The value is not displayed because it isn't there to display. In may case it was a Category on the row and date on the column. I had empty spaces showing where there was nothing to count for a particular Category and date combination.
My solution was to use a new field in the orginal data ForCount =1
Then I generated all combinations of Category x Date with ForCount =0 and appended them. Instead of my original count I then displayed the sum(ForCount) --no more empty values.