You could use a IF condition to replace 0 with blanks. For example, if you are summarizing a field called "Sales" the following formula would work:

Measure = IF(Sum(Sales)=0,"",Sum(Sales))

Hope this helps.

Adding the additional option based on Ricardo's suggestion:

Measure = IF(Sum(Sales)=0,Blank(),Sum(Sales))
Answer from CR7SMS on Stack Overflow
🌐
Microsoft Power BI Community
community.powerbi.com › t5 › Desktop › Replace-Blank-with-0 › td-p › 2530635
Solved: Replace Blank with 0 - Microsoft Power BI Community
May 24, 2022 - If it is blank/null and data type is number, then first convert data type to text. Because replace function in power query can only replace null or blank with something if it is text. Then replace null or blank with 0.
🌐
Reddit
reddit.com › r/powerbi › friday tip: change (blank) to 0 rapidly
r/PowerBI on Reddit: Friday Tip: Change (Blank) to 0 rapidly
October 7, 2022 -

We can agree (Blank) is super ugly to see on a report cause it just looks broken. but Zero....0000000 looks so good.

I use it as my simple trick that took too long to learn example when talking with over PowerBI developers and inevitably someone in the group facepalms when they realize it was that simple all along.

To do this is at the end of any measure / new column code etc, just add "+0" without quotations to the end of the code line and rejoice should show 0 now.

Measure = COUNT(<column>)

If there is no value in the above they will show (Blank) by default because adding nothing of no type is just that blank.

Measure = COUNT(<column>) +0

This +0 changes things to a math equation which provides a minimum value of 0.

Hope this helps someone and happy Friday.

🌐
RADACAD
radacad.com › home › radacad blog › replace blank with zero in power bi visuals such as card
Replace BLANK with Zero in Power BI Visuals Such as Card - RADACAD
February 5, 2020 - ... Returning a value instead of blank means that in a visual with an axis (table, matrix, column/bar charts, etc), if for a combination, there is no data, still the visual will show that with zero as a result.
🌐
Microsoft Fabric Community
community.fabric.microsoft.com › t5 › Desktop › show-items-with-no-data-as-0-instead-of-blanks › m-p › 113160
Solved: show items with no data as 0 instead of blanks - Microsoft Fabric Community
May 27, 2025 - This will ensure you get a 0 when its blank! ... New DAX COALESCE function - returns the first argument that is not blank! If all arguments return blank then COALESCE returns blank as well! ... Add a zero as the last argument in case all Measures return blanks! ... Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap. ... Check out the February 2026 Power BI update to learn about new features.
🌐
SQLBI
sqlbi.com › articles › how-to-return-blank-instead-of-zero
How to return BLANK instead of zero - SQLBI
March 22, 2022 - Offset Total No Zero IF := VAR SumOffset = SUM ( 'Product'[Offset] ) RETURN IF ( SumOffset = 0, BLANK (), SumOffset )
🌐
Databear
databear.com › home › 3 ways of dealing with blank values in power bi reports
3 Ways of dealing with Blank Values in Power BI Reports - Data Bear - Power BI Training and Consulting
November 27, 2025 - Just toggle the “Show blank value as” option and replace “blank” with your preferred placeholder (e.g., “null”, “N/A”, “0”). For finer control or different display values, you can craft a DAX measure using the IF statement ...
🌐
Data Mozart
data-mozart.com › home › why you should not replace blanks with 0 in power bi!
Why you should NOT replace blanks with 0 in Power BI! - Data Mozart
August 5, 2021 - Sales Amt 364 Products with 0 = COALESCE([Sales Amt 364 Products],0) Basically, what COALESCE function will do, is to check all the arguments provided (in my case there is only one argument), and replace the first BLANK value with the value you specified. Simply said, it will check if the value of the Sales Amt 364 Products is BLANK – if no, it will display the calculated value – otherwise, it will replace BLANK with 0.
Find elsewhere
🌐
SQLBI
sqlbi.com › articles › how-to-return-0-instead-of-blank-in-dax
How to return 0 instead of BLANK in DAX - SQLBI
April 13, 2022 - Later in the article, we show how to reduce its size if needed. We need to create relationships with the relevant dimensions. In our case, they are Product and Date. Once the model is completed, the measure no longer needs to perform calculations over dates. This is because the entire logic about when to show zero instead of BLANK is now in the ZeroGrain table. Therefore, the code becomes much simpler: SalesZeroWithTable = VAR ForceZero = COUNTROWS ( ZeroGrain ) > 0 VAR Amt = [Sales Amount] + IF ( ForceZero, 0 ) RETURN Amt
🌐
YouTube
youtube.com › jammos analytics
Replace Blank Values with Zero in Power BI Matrix Visuals! - YouTube
View this on my website! - https://jammosanalytics.co.uk/2023/11/15/power-bi-matrix-blanks-to-zeroes-explained/Learn how to easily replace blank values with ...
Published   June 21, 2023
Views   8K
🌐
Reddit
reddit.com › r/powerbi › displaying "0" instead of blank
r/PowerBI on Reddit: Displaying "0" instead of Blank
February 25, 2018 -

Hey, i am using cards to display count of items i have. Sometimes, i have zero count, but the card displays "(Blank)".

is there a way to display the number "0" instead of that?

🌐
Microsoft Fabric Community
community.fabric.microsoft.com › t5 › Desktop › Replacing-Blanks-with-0 › m-p › 418624
Solved: Replacing (Blanks) with 0 - Microsoft Fabric Community
December 12, 2022 - I tried some dax queries but nothing works. I use Direct Query ... Thank you for your help. ... If you want is to replace blank or null values with 0 without creating a new column, then use the Query Editor.
🌐
Graphed
graphed.com › blog › how-to-show-0-instead-of-blank-in-power-bi
How to Show 0 Instead of Blank in Power BI | Graphed Blog
December 21, 2025 - For other data types, or for more complex logic, you'll want to use a more explicit method. A more robust and explicit way to handle blanks is by using the IF function in combination with ISBLANK. This approach essentially tells Power BI: "Check if the measure is blank.
🌐
SPGuides
spguides.com › power-bi-if-null-then-0
Power BI IF NULL then 0
February 14, 2025 - Once the data has been loaded, Click on the new column option under the modeling tab and apply the below-mentioned formula: Text Null = IF(not(isblank(Stocks[Symbol])),BLANK(),"0") ... In the below screenshot, we can see that if the Symbol column ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › dax › best-practices › dax-avoid-converting-blank
Avoid converting BLANKs to values in DAX - DAX | Microsoft Learn
Should the result be zero or BLANK, the third argument—the alternate result (which is optional)—is returned. In this example, because zero is passed as the alternate result, the measure is guaranteed to always return a value.
🌐
Power Tech Tips
powertechtips.com › replace-blank-with-zero-power-bi
2 Ways to Replace Blank with 0 in Power BI - Power Tech Tips
June 8, 2023 - Now that the data is loaded into Power BI, cells that displayed nulls are now empty. To create a calculated column, navigate to the Table view by clicking on the grid icon. From there, select the New column option in the Table tools tab. Price (no blanks) = IF( ISBLANK( 'In'[Price] ), 0, 'In'[Price] )