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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
yakovlol
Resolver I
Resolver I

To add zero values where is blank in Matrix

Hello team,

 

If there are any workarounds how can I instead of blank values put zero?

So my matrix table is below and where there are blank values there is No row in my fact table. That's why it's blank in matrix because my fact table is appending data from 2 tables. 
I cannot merge two tables only append

But I don't know how to fix that and put 0 instead of blank

+0 is not working in my case it puts zero's everywhere

yakovlol_0-1724946276773.png

 

Much appriciete for the help.

Thanks 

2 REPLIES 2
Anonymous
Not applicable

Hi,Idrissshatila ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.
Hello,@yakovlol .I am glad to help you.

In fact, Idrissshatila makes excellent suggestions. Here are the tests I have performed and I hope they help you.

You can try to re-add the measure in place of the original area effect in the Value area.
like this.

 

M_result = 
IF(MAX('Table'[Sales])=BLANK(),0,SUM('Table'[Sales]))

 

vjtianmsft_0-1725001206807.png

change to this:

vjtianmsft_1-1725001232319.png

vjtianmsft_2-1725001239592.png

Here is my test data:

vjtianmsft_5-1725001305830.png

vjtianmsft_6-1725001314519.png

 

vjtianmsft_4-1725001281608.png

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Idrissshatila
Super User
Super User

Hello @yakovlol ,

 

so it's either you do if isblank the record then 0 but it puts zero everywhere that is blank or stay with blank record, there's no between.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors