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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Matrix Visual

Hi All,

 

I have a created a Matrix visual. But I would like to fill the empty spaces in the visual with 0.

Is it possible?

If so, can I please how to do that?

 

Any help is appreciated!

 

Thank you!

Megha

 

3 ACCEPTED SOLUTIONS
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

If you are putting measure in the value section of the matrix visual then you can put a if condition where calculation return value is blank then return 0 else it will return calculate value. Below is the pseudo code of it.

 

 

measure = 
var _calc = <your calculation>
return if(_calc = blank(),0,_calc)

or simply add +0 at the end like this:-

measure = <your calculation>+0

 

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

I'd like to complement a point that if you are putting a column in the Values section, you can create a measure with corresponding aggregation type for the column, like

Total = SUM('table'[Column]) + 0 

Or 

Count = COUNT('table'[Column]) + 0

Or use other aggregation functions per your need. Use this measure in the matrix to replace original column field. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

Anonymous
Not applicable

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

I'd like to complement a point that if you are putting a column in the Values section, you can create a measure with corresponding aggregation type for the column, like

Total = SUM('table'[Column]) + 0 

Or 

Count = COUNT('table'[Column]) + 0

Or use other aggregation functions per your need. Use this measure in the matrix to replace original column field. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

If you are putting measure in the value section of the matrix visual then you can put a if condition where calculation return value is blank then return 0 else it will return calculate value. Below is the pseudo code of it.

 

 

measure = 
var _calc = <your calculation>
return if(_calc = blank(),0,_calc)

or simply add +0 at the end like this:-

measure = <your calculation>+0

 

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

Thanks so much! @Samarth_18 

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.