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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
mstone3
Helper II
Helper II

Matrix Visual - Show Blank Values as Zero

Hello,

 

I'm using a matrix visual with many columns.  I would like to show blank values as zero.  In Excel, there is a simple option checkbox for this, but I can't seem to find any equivalent in PowerBI.  I know one solution would be along the lines of switching to a table visual, creating a separate measure for each column and adding zero at the end of the measure, but I would really prefer to avoid having to do this given the number of columns.  Does anyone know of a simpler solution?

 

Thanks!

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi mstone3,

 

If you want to show blank value  as zero like below

60.png

You could use expression like below

Column= marix[amoaunt]+0

If you want to fill blank area with zero in matrix like below

61.png

Because the records don’t exist in dataset, so it will show blank. So you need to create a related table like below

62.png

Use this filed in Matrix, then create measure like below

Measure 7 = SUM(marix[amoaunt])+0

63.png

Best Regards,

Zoe Zhi

 

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

1 REPLY 1
dax
Community Support
Community Support

Hi mstone3,

 

If you want to show blank value  as zero like below

60.png

You could use expression like below

Column= marix[amoaunt]+0

If you want to fill blank area with zero in matrix like below

61.png

Because the records don’t exist in dataset, so it will show blank. So you need to create a related table like below

62.png

Use this filed in Matrix, then create measure like below

Measure 7 = SUM(marix[amoaunt])+0

63.png

Best Regards,

Zoe Zhi

 

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

Helpful resources

Announcements
March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.