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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
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.

Top Solution Authors