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

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

Reply
Sagejah9
Helper III
Helper III

Replacing blanks with zeros

Hi. I am trying to replace the blanks with zeros in a measure that's inside a filtered table. The measure is doing a count on rows. I used if(isblank(variable),0,variable) but filling in blanks with zeros including all rows and ignoring the filters that were applied in the slicer. Anyone has con e across this or has a solution? Thanks

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Sagejah9 

 

You can try the following methods.
Sample data:

vzhangti_0-1671071891607.png

Measure = SUM('Table'[Value])+0

vzhangti_1-1671071921205.png

Hope this method helps you.

 

Best Regards,

Community Support Team _Charlotte

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

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Sagejah9 

 

You can try the following methods.
Sample data:

vzhangti_0-1671071891607.png

Measure = SUM('Table'[Value])+0

vzhangti_1-1671071921205.png

Hope this method helps you.

 

Best Regards,

Community Support Team _Charlotte

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

1Daniel993
Helper III
Helper III

Hello yo can use:
VAR ForceZero = Variable <= column && column<= Variable
VAR Amt = [Variable] + IF ( ForceZero, 0 )
For mor information you can read https://www.sqlbi.com/articles/how-to-return-0-instead-of-blank-in-dax/

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors