Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a measure that calculates the % of tasks that were completed early or on-time that I display in a matrix by week ending
Pct = ([Early] + [OnTime]) / [Total Tasks]
The problem comes when there is only 1 task in a week and it was late. This would calculate to 0% for that week, but it does not show in the matrix. I cannot replace blank or null values with 0, as I only want the field populated if there is data in it.
I have conditional formatting on the value's background color as shown in the screenshot, so I'm confused why it doesn't show the 0 value.
How do I make the 0 values show?
TIA
Solved! Go to Solution.
zero values will show. Are you sure they are evaluating to zero, and not blank()? Drop the measure in a regular table and see what it looks like for those records
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reportingzero values will show. Are you sure they are evaluating to zero, and not blank()? Drop the measure in a regular table and see what it looks like for those records
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingYou are right! It IS evaluating to blank. But shouldn't 0/1 = 0 ? I'm confused by this. How do I edit the measure to account for this?
Thank you! I changed the measure to evaluate from total tasks and then it works!
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 |
---|---|
114 | |
99 | |
82 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |