Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a table which I display as a matrix as below.
I would like the blanks to be 0's. I tried
Person Count = COUNT(Table1[Person])+0
as well as
Person Count = IF(ISBLANK(COUNT(Table1[Person])),0,COUNT(Table1[Person]))
I must be missing something obvious. Here is the pbix file. Thanks a lot!
Solved! Go to Solution.
Hi @michaelccdf,
The measure doesn't work because that there is no complete data for type and year.
1. Please create a calculated table with Values to get the Type.
Table = VALUES(Table1[Type])
2. Create the relationship between the two tables.
3. Create the matrix like below.
Person Count = COUNTROWS(Table1)+0
Then the measure could work.
Best Regards,
Cherry
Hi @michaelccdf,
The measure doesn't work because that there is no complete data for type and year.
1. Please create a calculated table with Values to get the Type.
Table = VALUES(Table1[Type])
2. Create the relationship between the two tables.
3. Create the matrix like below.
Person Count = COUNTROWS(Table1)+0
Then the measure could work.
Best Regards,
Cherry
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
102 | |
84 | |
79 | |
70 |
User | Count |
---|---|
120 | |
110 | |
95 | |
82 | |
77 |