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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
nguyenh7
New Member

How to create Data Label as Percentage or have it in the info box when you hover the stacked bar

nguyenh7_0-1624637202561.png

 

Hi everyone! How do I display the total percentage as the data label instead of total count for the stacked bar  (horizontal/vertical)? I don't want the 100% stacked bar chart, only the one that this visual shows. I've already used the tooltips to get the %GT and it does show when I hover each part of the stacked bar, is there a way to add the total percentage to the back text box under %GT when we hover over a part of the stacked bar as well?

 

Thanks a bunch!

 

 

 

1 ACCEPTED SOLUTION

Hi  @nguyenh7 ,

 

Create a measure as below:

percentage = DIVIDE(SUM('Table'[Value]),'Table'[Allocated])

And you will see:

vkellymsft_1-1624871882022.png

 

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

 

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

@nguyenh7 you need to create a measure that calculated the % and then use that measure for your line chart.

 

 

Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I'm new to power bi, do you mind letting me know how to create a measure for that? Thanks!

Hi  @nguyenh7 ,

 

Create a measure as below:

percentage = DIVIDE(SUM('Table'[Value]),'Table'[Allocated])

And you will see:

vkellymsft_1-1624871882022.png

 

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors