Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
The_Clam
Helper I
Helper I

Need help with blanks and zeros - calculation percentages by category

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:

SeverityJanuaryFebruary

Critical

 

0.00%

High 100%
Moderate 40%
Low  
1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@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 ) )
    )

jdbuchanan71_0-1614797624411.png

 

 

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@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 ) )
    )

jdbuchanan71_0-1614797624411.png

 

 

Bingo!  Thanks so much.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.