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.
Hi. I am have having trouble displaying blanks AND zeros in my Power BI percentage matix. I seem to be able to display one or the other, but I need both. I have 3 tables: Ticket Data, Severity, and Date (with relationships). Tickets that have no data, I need to remain blank. Ticket calculations that divide into zero, need to show zero. See expected result below. Thanks!
Expected Result:
Severity | January | February |
Critical | 0.00% | |
High | 100% | |
Moderate | 40% | |
Low |
Solved! Go to Solution.
@The_Clam try it like this.
Measure =
VAR _Under4 = COUNTROWS ( FILTER ( 'Ticket Data', 'Ticket Data'[Time to Resolve (hours)] < 4 ) )
VAR _Tickets = COUNTROWS ( 'Ticket Data' )
RETURN
IF (
ISBLANK ( _Tickets ),
BLANK (),
IF ( ISBLANK ( _Under4 ), 0, DIVIDE ( _Under4, _Tickets, 0 ) )
)
@The_Clam try it like this.
Measure =
VAR _Under4 = COUNTROWS ( FILTER ( 'Ticket Data', 'Ticket Data'[Time to Resolve (hours)] < 4 ) )
VAR _Tickets = COUNTROWS ( 'Ticket Data' )
RETURN
IF (
ISBLANK ( _Tickets ),
BLANK (),
IF ( ISBLANK ( _Under4 ), 0, DIVIDE ( _Under4, _Tickets, 0 ) )
)
Bingo! Thanks so much.
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 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |