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
rayinOz
Helper III
Helper III

Stacked Bar Chart - Percent AND Count

Hello World

 

I'm hoping someone could help. I'm trying to add a count with this stacked bar chart. Here's my visual.

 

stacked bar chart.png 

 

Any help would be much appreciated.

 

Kind regards

 

Ray

1 ACCEPTED SOLUTION

I don't think this is possible out of the box, but if you have just the one horizontal bar you could try the following hack.

 

  • Create a second chart that is a normal stacked bar
  • turn on data labels and set the colour to black
  • turn off everything else on this chart (x-axis, y-axis, legend, headers, etc)
  • set all of the series to use white as the data color
  • then size this chart to match the size of the percentage stacked bar
  • send this new chart to the back and position it just a little higher than the original chart

 

2019-02 Pcnt and Count.png

View solution in original post

4 REPLIES 4
v-cherch-msft
Employee
Employee

Hi @rayinOz 

 

You may add a measure to count it and drag the measure to tooltips.For example:

Count = COUNT(Table1[Status])

1.png

 

Regards,

Cherie

 

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Is there a way to get it to show in the graph? The reason is that I take a screenshot of the graph and put it in powerpoint, so I would like both a percentage and a count to be displayed. 

 

Possible?

 

Rayinoz

I don't think this is possible out of the box, but if you have just the one horizontal bar you could try the following hack.

 

  • Create a second chart that is a normal stacked bar
  • turn on data labels and set the colour to black
  • turn off everything else on this chart (x-axis, y-axis, legend, headers, etc)
  • set all of the series to use white as the data color
  • then size this chart to match the size of the percentage stacked bar
  • send this new chart to the back and position it just a little higher than the original chart

 

2019-02 Pcnt and Count.png

Hi @rayinOz 

 

I would suggest you use Line and clustered column chart.Please check the format for the chart in attachment.

1.png

Set the Stroke width to 0: The line would be hidden.

 

Regards,

Cherie

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.