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 September 15. Request your voucher.

Reply
Chandrashekar
Resolver III
Resolver III

Replacing blank with Zero : Matrix

Hello,

 

How to replace blank with zero in Matrix. Kindly note I am not using Dax to get values.

 

Sample Data: Pbix 

 

Regards,

Chandrashekar B

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Chandrashekar , we usually add +0, to measure. Yet to check the file

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @Chandrashekar ,

Depending on your description, you want to replace the white space in the matrix with 0.

 

Here are my steps you can follow:

(1)This is my test data.

vtangjiemsft_0-1662456535592.png

 

(2) Create a measure [MEASURE2].

 

Measure 2 =

DIVIDE(

    AVERAGE(Sheet1[Score]),

    CALCULATE(AVERAGE(Sheet1[Score]),ALLEXCEPT(Sheet1,Sheet1[A1/A2]))

) + 0

 

 

(3) Then we can meet your need , the result is as follows.

vtangjiemsft_1-1662456535595.png

Best Regards,

Neeko Tang

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

 

Hello,

 

Thanks it is working perfectly 🙂

 

Regards,

Chandrashekar B

amitchandak
Super User
Super User

@Chandrashekar , we usually add +0, to measure. Yet to check the file

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello Amit,

 

am not using dax however using fields directly into visisuals.

Regards,

Chandrashekar B

@Chandrashekar , Refer to the attached file after signature, it requires model change and measure

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello Amit,

 

Thanks for the solution. Can we get same for Average(Score Field) as well.

Chandrashekar_0-1662091005602.png

 

Regards,

Chandrashekar B

Hello,

Can we get same for Average(Score Field) as well.

Chandrashekar_0-1662443666632.png

Regards,

Chandrashekar B

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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