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

Changing value on a stacked bar chart - power BI

Annotation 2024-01-16 111031.pngHello everyone,

 

Happy to have join the Microsoft Power BI community!

 

Here is my issue: I have the following charts (attached picture) and I'd like to have a percentage number (margin as % and not as whole number) within the margin bar (the middle one)

 

I know that in excel you can do the 'value as cell" and it will make appear whatever you want, but I do not know how to do it on power BI, does it even exist please?

 

Appreciate your help in advance,

Lucas

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

 

I don't quite understand your first request, you can share sample data or .pbix files. For the second requirement, you can use sort by column.Sort one column by another column in Power BI - Power BI | Microsoft Learn

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

Anonymous
Not applicable

Hi @Anonymous 

 

Thanks for your reply

 

I can't have the possibility to attache a file in the forum .. can we continue this discussion by email maybe so that we can find a solution to my problem in a smoother way ?

Anonymous
Not applicable

Hi @Anonymous ,

 

There are two options to achieve this:

1.Using 100% Stacked column chart

vtianyichmsft_0-1705460566144.png

2.Using Stacked column chart,finding data labels and turn on Custom label:

vtianyichmsft_1-1705460904459.png

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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 for your help! In my case I would like to keep the 3 distinct columns (Revenues, Margin, Costs)

 

Do you think of another solution to customize this data label in particular?

 

Another question please, it is impossible for me to sort the figures from revenues, margin, and costs in the descending order (meaning: for revenues column, the biggest figure on the bottom and then going up the smaller one ; same for costs as well)

 

Do not hesitate if you have any idea on how to implement this, it would be so helpful!

 

Kind regards,

LM

amitchandak
Super User
Super User

@Anonymous , You can do that with new label customization, released in Dec-2023

New Power BI Data Label Customizations (December 2023) - https://youtu.be/qe3eW4OkAN8

 

Add % of subtotal measure in details of label

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi, Thanks for the swift reply I tried what you said, while watching the YT video but cannot make it ...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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