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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.