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
Anonymous
Not applicable

Show Percentage on a Stacked Bar Chart (NOT 100% Stacked Bar Chart)

Dear all,

 

I would like to show percentages instead of amounts on a stacked bar chart. Having browsed extensively on this forum and the internet, I can only find solutions for 100% stacked bar charts, not what I am looking for. I have added links below for my sample PowerBI file. Any help would be much appreciated. Thank you very much!

 

 

Link to sample PowerBI file 

Link to sample Excel database 

 

Stacked Bar3.jpg

 

Data.JPG

 

Regards,

Joyce C.

3 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @Anonymous ,

 

You cannot change the data labels types from the charts, the only visualizations that allows that change is the donut/pie chart, all others return the data labels based on the calculation you have in this case the sum o Number O/S.

 

You can try and find a custom visual on the appsource or create your own with charticulator.com

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

View solution in original post

Hi,

Try this measure

Measure = divide([Total Slow Proj No],CALCULATE([Total Slow Proj No],ALL('Aging Table')))

Hope this helps.

Untitled.png


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

View solution in original post

9 REPLIES 9
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

Dear Ashish, @Ashish_Mathur 

 

When I apply the solution to my real data with a similar structure, I get "100%" instead of the percentages I want to calculate, don't know what went wrong. I have attached my PBI file with sensitive data masked. I shall be grateful if you could help. Thank you very much!

 

Link to PBI file 

Link to Excel database 

 

Measure DAX Formula.JPGPercentage Not Correct.jpg

 

Regards,

Joyce C.

Hi,

Try this measure

Measure = divide([Total Slow Proj No],CALCULATE([Total Slow Proj No],ALL('Aging Table')))

Hope this helps.

Untitled.png


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

Thank you. It works.

You are welcome.


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

Thank you for your help.

You are welcome.


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

Hi @Anonymous ,

 

You cannot change the data labels types from the charts, the only visualizations that allows that change is the donut/pie chart, all others return the data labels based on the calculation you have in this case the sum o Number O/S.

 

You can try and find a custom visual on the appsource or create your own with charticulator.com

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Dear all, I have added images to my post. 🙏

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.