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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Stacked bar chart with % Axis x and numeric data label

Hi everyone.

 

I need support, I have to show a stacked bar chart with X axis as % and the data label should be numeric, having the rest of the bar in grey until 100%, something like this:

ruz_lee_0-1621242721055.png

This is my model,

ruz_lee_1-1621242882836.png

Where Reson field is a dimesion tablle with the different type of reason, and the table OrderDetails is my fact table. Show, in the visualization, the field reason of the ClosureReason table is the Axis Y, and the measure is a distinct count of OrderID in the table OrderDetails.

First, I used the visualization 100% stacked bar chart, but it was impossible show the data like the picture, because only show data if exist data related in both table, and I couldn´t add other value like numeric:

ruz_lee_2-1621244175738.png

Then, used the normal stacked bar chart, but I couldn´t change the X Axis to percent and show the data label like numeric:

ruz_lee_3-1621244287901.png

Showing the value of the measure like % of grand total=>

ruz_lee_4-1621244450959.png

I don´t know how could I do it, for now Im using two visualization, one like background using only data of the table reason:

ruz_lee_5-1621244570059.png

And other inside using the Reason field from the table Reason, and in the axis X  the count of oder from the table OrderDetails:

ruz_lee_6-1621245054666.png

The problem of this is that the X axis percent is not really correct, does anyone know how to do it on the same object?Thanks

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

stacked.gif

 

Then, you will get this:

slicer stacked.gif

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

stacked.gif

 

Then, you will get this:

slicer stacked.gif

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks a lot!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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