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
lad_baxter
New Member

how to replace blanks for zero in matrix - used calculated columns, not measures, to build matrix

Hello -

 

I have seen several solutions for how to replace blanks in a matrix with a zero. However, they all use measures.  I created my matrix using data from calculated columns, not measures.  How do you replace the blanks but when your data sources are calculated columns, not measures?  thank you

4 REPLIES 4
lad_baxter
New Member

i can't figure out how to create the measure with a conditional statement.  It's working just fine as a calculated column.  Is there any way I can fix this blank vs. zero in a matrix without having to convert everything to measures?

 

Anonymous
Not applicable

Hi @lad_baxter ,

 

According to your statement, I think your issue is that you want to replace blank for zero in matrix. And you want to achieve your goal by calculated column instead of measure.

As far as I know, calculated column will load data into Power BI, so it couldn't be dynamic. I guess the blank in your matrix is caused by lossing data in data model, so calculated column couldn't help you solve your issue. I suggest you to try measure which is based on calculated column with IF() function.

For example:

Measure =
IF ( SUM ( [Caculated column] ) = BLANK (), 0, SUM ( [Caculated column] ) )

If this reply still coudln't help you solve your issue, please share a sample file with me and show me a screenshot with the result you want.

 

Best Regards,
Rico Zhou

 

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

 

ryan_mayu
Super User
Super User

can you try to create a measure and show the measure in matrix?

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I will try that but I am so far down the rabbit hole using these calculated columns that it would be like starting from the beginning. might be my only option at this point.  thanks

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.