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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to show 0 values in stacked bar chart

Hello, 

I'm tring to display average values in stacked bar chart, some of them have avarge of 0, but unfortunately the chart doesn't display the 0 values. 

I created the following queries to deal with the situation...but it still didn't work. 

1.

avg_calc=
CALCULATE (
AVERAGEX (
Fact_FormAnswerRows,
IFERROR ( VALUE ( Fact_FormAnswerRows[Selected Answers] ), BLANK () )
),
ALL ( dim_customer )
)

 

2.

check_avg_calc

IF ( [avg_calc] = 0, "0", [avg_calc] )


In the chart i used the check_avg_calc to display the values.

Anyone knows how to deal with it?

Thanks

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

I have just pulled the values on the graph and it is working please check below.

PoojaDarbhe_0-1626777862868.png

 

Please let me know is it as expected?

 

Best Regards,

Pooja Darbhe

View solution in original post

5 REPLIES 5
hashtag_pete
Helper V
Helper V

Hello KatyaK,

have you tried the following:

hashtag_pete_1-1626776727867.png

it showed me the textual content with Value 0

 

Best 

Stephan

 

Anonymous
Not applicable

It didn't work  😞

PoojaDarbhe
Resolver I
Resolver I

Hi @Anonymous 

 

Could you please attach the image what do you exactly want?

 

Best regards,

Pooja Darbhe

Anonymous
Not applicable

Hi Pooja Darbhe!

Let's say this is my stacked bar chart (the dashed line is the chart line):

 

textual content ------------>10
textual content----------->1
textual content ------->0
textual content ----------------------------------->30
textual content ------->0
textual content ------->0
textual content ------->0
textual content ----------------------------------------->60

 

So i want to display 0 values in the chart as well. 

now i have only:

 

textual content ---------------------->10
textual content----------->1
textual content ----------------------------------->30
textual content ----------------------------------------->60

Hi @Anonymous 

 

I have just pulled the values on the graph and it is working please check below.

PoojaDarbhe_0-1626777862868.png

 

Please let me know is it as expected?

 

Best Regards,

Pooja Darbhe

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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