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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
009co
Helper IV
Helper IV

Blank matrix values change to zeros

Trying to get my matrix blank values changed to zeros.  Matrix looks like below screenshot. 

 

I am doing IF ISBLANK calculation test on the calculation.

 

% Available =
IF (
    ISBLANK(SUM('Table'[Available]) / SUM('Table'[Budget])),
    0,
    SUM('Table'[Available]) / SUM('Table'[Budget])
)

 

If there is no result then it is blank, right?  What am I missing? It doesn't return zeros, just stays blank.

 

009co_0-1663346203888.png

 

 

 
1 ACCEPTED SOLUTION

3 REPLIES 3
tamerj1
Super User
Super User

Hi @009co 
The Project column and the Department column both must be independent dimension tables linked to the fact table through the respective columns. You can refer to my solution for this post just today Re: how to replace blank fields to zero in matrix ... - Microsoft Power BI Community

Moreover the measure can be written in more simple syntax as follows

% Available =
COALESCE (
    DIVIDE ( SUM ( 'Table'[Available] ), SUM ( 'Table'[Budget] ), 0 ),
    0
)

 

Project column and the Department columns are in same query as the values.

 

So yes it is obvious then that the blank values are because there are no rows in the query with those values for those dimensions.

 

Can't DAX replace these blanks with zeros without have a model with dimensions tables? 

 

 

@009co 
I don't think so

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.