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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Rockz
Helper I
Helper I

I want to show 0 instead of blank

Dear,

I have table visual where ABC and MAN Coulmn have  some blank values so Instaed of blank values i wnat to show 0. how this is possible?

Rockz_0-1702978658119.png

 

and I'm using these measure for this. 

ABC = CALCULATE(SUM('XYZ'[Order Value ]), 'XYZ'[ABC/MAN] = "A")

MAN = CALCULATE(SUM('XYZ'[Order Value ]), 'XYZ'[ABC/MAN] = "M")

 but if i apply these measures Top 10 is not working.

Could you please help in this! 

 

Thanks in advance.

2 REPLIES 2
PijushRoy
Super User
Super User

Hi @Rockz 

Use below measure

 

ABC = If(IsBlank(CALCULATE(SUM('XYZ'[Order Value ]), 'XYZ'[ABC/MAN] = "A")),0,CALCULATE(SUM('XYZ'[Order Value ]), 'XYZ'[ABC/MAN] = "A"))

MAN = If(IsBlank(CALCULATE(SUM('XYZ'[Order Value ]), 'XYZ'[ABC/MAN] = "M")),0,CALCULATE(SUM('XYZ'[Order Value ]), 'XYZ'[ABC/MAN] = "M"))

 

If solve your requirement, please MARK THIS ANSWER AS SOLUTION

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Ahmedx
Super User
Super User

ABC =COALESCE(CALCULATE(SUM('XYZ'[Order Value ]), 'XYZ'[ABC/MAN] = "A"),0)

MAN = COALESCE(CALCULATE(SUM('XYZ'[Order Value ]), 'XYZ'[ABC/MAN] = "M"),0)
====

ABC =
VAR _t1 =CALCULATE(SUM('XYZ'[Order Value ]), 'XYZ'[ABC/MAN] = "A")
RETURN IF(_t1,_t1,0)

MAN =
VAR _t1 = CALCULATE(SUM('XYZ'[Order Value ]), 'XYZ'[ABC/MAN] = "M")
RETURN IF(_t1,_t1,0)

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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