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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
e175429
Helper IV
Helper IV

Clustered Bar Chart to Show Percentages Instead of Whole Numbers

Hello All,

 

This is my current chart:

e175429_0-1722868438082.png

 

This chart is based on 5 measures I created, and each measure has it's own total.

 

Is there a way to show the percentages of the total instead of the whole numbers?

 

Regards

1 ACCEPTED SOLUTION

Hi @e175429 

 

 

You can just change the outcome of the measure 1 into _result/1405(the measure of the total)

vzhengdxumsft_0-1723099883172.png

The same to other measures.

Then select the measure and click % button in the Measure tools pane:

vzhengdxumsft_1-1723100417721.png

 

 

Best Regards

Zhengdong Xu
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

10 REPLIES 10
Rakesh1705
Super User
Super User

While calculating the percentages you can use combination of calculate and all functions so that the Filtering action can be resisted. 

I'm sorry, I'm not sure I understand what you mean

Hi @e175429 

 

 

You can just change the outcome of the measure 1 into _result/1405(the measure of the total)

vzhengdxumsft_0-1723099883172.png

The same to other measures.

Then select the measure and click % button in the Measure tools pane:

vzhengdxumsft_1-1723100417721.png

 

 

Best Regards

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

That did it! 

 

Thank you soooooo much!

Rakesh1705
Super User
Super User

Hi @e175429 if these are 5 different measures then you need to first add these 5 measures to get a sum up Value and then divide those 5 measures by the sum up Value. Data type of ultimate 5 results will be in  percentage format. I hope you got my point.

Good morning @Rakesh1705 

I do get your point. However, the total of each measure is different.

 

The sum of the first measure is 1287 but the total is 1405 so I need that bar to show 92%

 

The sum of the second measure is 998 but the total is 1124 so I need that bar to show 89%

 

The sum of the third measure is 1219 but the total is 1405 so I need that bar to show 87%

 

The sum of the fourth measure is 1032 but the total is 1124 so I need that bar to show 92%

 

The sum of the fifth measure is 1003 but the total is 1124 so I need that bar to show 89%

 

So if I summed up the measures, I would get incorrect percentages.

Understood your point. But if you are able to get the percentages separately as per your calculation then keep those percentage measures instead of Value measures in the x axis

I would love to do that if the graph was to stand by itself. But I need to put filter on it, which in turn would change the percentages depending on what is filtered.

Rakesh1705
Super User
Super User

Source Data and % component dax

Rakesh1705_0-1722873608953.png

use the % component at x axis

Rakesh1705_1-1722873786471.png

You will get your desired result

Hey @Rakesh1705 

 

A couple of things are different for my graph. 

 

First, it's the product of 5 measures.

Here is my sample data:

e175429_0-1722886159058.png

 

 

I created 5 measures based on this data because I needed to group the sum of certain columns:

First measure:

e175429_1-1722886216533.png

Second measure:

e175429_3-1722886430418.png

 

The next 3 measures follow the same pattern. Let me know if seeing those would be helpful.

 

I put all 5 measures on a grpah and get:

e175429_5-1722886636639.png

 My data build is:

 

 

e175429_6-1722886947292.png

When I right click any of the x-axis and select "show value as percent of grand total" it changes the chart to this (I only changed it for the first two):

e175429_7-1722887039704.png

 

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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