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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Train_herb_613
New Member

Add label or tooltip showing % of total on barchart

Hi all,

I have some data and I'd like to make a chart in PowerBI that shows the sales for a particular country. I would also like it to show what % those sales are for global sales of each product. E.g. I start with this data:

 

ProductCountrySales
OrangesUK650,000
OrangesIndia100,000
OrangesSouth Korea150,000
ApplesUSA25,000
ApplesChina450,000
ApplesUK250,000
ApplesIndia100,000
ApplesSouth Korea75,000
BananasChina150,000
BananasUK25,000
BananasFrance450,000
BananasIndia150,000
BananasUSA100,000

 

Here's the graph in Excel. The important bit is in yellow

Train_herb_613_0-1690053017382.png

 

I've tried searching and creating a measure but I can't get my head around what I need to do. I'm completely new to PowerBI and I can create this, but I'm not sure where to start with the % element. Thanks for any help!

Train_herb_613_1-1690053263371.png

 

 

1 ACCEPTED SOLUTION

Hi,

Please find attached the PBI file.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

Would you be OK if the % appears (as a tooltip) when you hover the mouse over the bar?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Yes, that would be OK too.

Thanks!

Hi,

Please find attached the PBI file.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1690054228967.png

 

 

Jihwan_Kim_0-1690054212937.png

 

Sales label measure: =
VAR _totalincountry =
    CALCULATE ( [Sales measure:], ALL ( Country[Country] ) )
RETURN
    DIVIDE ( [Sales measure:], _totalincountry )

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
foodd
Super User
Super User

Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot).


https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...


Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

 

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

Here you go. You can see the expected outcome in my first post, but here it is again:

https://drive.google.com/file/d/1AI_Fzh1-BWchruAt7bTKf8EKMZChW8tJ/view?usp=sharing

 

Train_herb_613_0-1690097510107.png

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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