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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Rockz
New Member

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

 

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.