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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

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
v-tangjie-msft
Community Support
Community Support

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

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

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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