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

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

Reply
Erburi92
Frequent Visitor

In matrix 0 instead of empty cell

Hello,

 

I want to have 0 in matrix insteand of empty place. I have tried several functions, however, it failed. Please see the matrix table:

Erburi92_0-1661754367605.png

 

I tries several functions:

Blanks =
IF (
    CALCULATE (
        SUM(FraudSite[Total Fraud Total])
            = 0.00
    ),
    0,
    SUM(FraudSite[Total Fraud Total]
 
and
 
No blank Total Fraud =
VAR _total_faud = SUM(FraudSite[Total Fraud Total])
RETURN
IF(ISBLANK(_total_faud),0,_total_faud)
 
and
 
Sum = sum(FraudSite[Total Fraud Total])+0
 
Could you help me to solve this issue?
 
Column parameters:
 
Erburi92_1-1661754472236.png

 

Erburi92_2-1661754502448.png

 

 

 

Thank you:)

 

1 ACCEPTED SOLUTION

Hey @Erburi92 ,

 

the problem you are facing is based on the auto-exist behavior, read a detailed explanation here: Understanding DAX Auto-Exist - SQLBI

To overcome this problem you have to create a star schema creating dimension tables for the site and the month, then create relationships between the dimension tables and your FraudSite table (the fact table). Here you will find an introduction to data modeling with Power BI: Design a data model in Power BI  - Learn | Microsoft Docs

You have to be aware that you also need to fill the blank values for the site in the FraudSite, e.g., not applicable. The value also has to be present in the dimension table.

Hopefully, this helps to tackle your challenge.

Regards,
Tom 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

9 REPLIES 9
TomMartens
Super User
Super User

Hey @Erburi92 ,

 

this measure:

SalesAmount Zero instead of blank = 
var valueSalesAmount = CALCULATE( SUM( 'FactOnlineSales'[SalesAmount] ) )
return
IF( ISBLANK( valueSalesAmount )
    , 0
    , valueSalesAmount
)

return a 0 instead of blank value as you can see in the below picture:
image.png
Hopefully, this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Thank you, however, it does not work 😞 no zeros added

Hey @Erburi92 ,

create a pbix file that contains sample data, upload the pbix to onedrive, google drive, or dropbox and share the link.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

@TomMartens maybe you found a solution?

Hey @Erburi92 ,

 

it seems I have to install additional software to get the pbix file.

I will not do this.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

@TomMartens ,

 

Please see link below:

 

https://www.dropbox.com/s/fon8izivqw8n062/example.pbix?dl=0

 

I hope this works

@TomMartens ,

 

Please see link below:

 

https://www.dropbox.com/s/fon8izivqw8n062/example.pbix?dl=0

 

I hope this works

Hey @Erburi92 ,

 

the problem you are facing is based on the auto-exist behavior, read a detailed explanation here: Understanding DAX Auto-Exist - SQLBI

To overcome this problem you have to create a star schema creating dimension tables for the site and the month, then create relationships between the dimension tables and your FraudSite table (the fact table). Here you will find an introduction to data modeling with Power BI: Design a data model in Power BI  - Learn | Microsoft Docs

You have to be aware that you also need to fill the blank values for the site in the FraudSite, e.g., not applicable. The value also has to be present in the dimension table.

Hopefully, this helps to tackle your challenge.

Regards,
Tom 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.