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

Percentage labels on a stacked chart

Hi, 

 

joshuap_0-1603467593881.png

 

I have the chart above that I am using. However, instead of showing the raw data values I want to show these as a percentage of that bar (i.e. the 12 would show 75% as it is 12/16). I have tried to show data as a %of grand total but all that does is show it as a total of all of them added together. Likewise, I have tried the 100% stacked chart but that doesn't show the difference in sample size which i really need to highlight. 

 

Thanks in advance

 

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data to reproduce your scenario. The pbix is attached in the end.

Table:

g1.png

 

You may create a measure as below.

Result = 
DIVIDE(
    SUM('Table'[Value]),
    CALCULATE(
        SUM('Table'[Value]),
        ALLEXCEPT('Table','Table'[Date].[Month])
    )
)

 

Result(Stacked bar chart):

g2.png

 

Because the value of the measure for each month is 1, it doesn't show the difference in sample size. 100% stacked chart has the same result.

 

Best Regards

Allan

 

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

manikumar34
Solution Sage
Solution Sage

@Anonymous , 

Hi, 100% stacked bar chart should work. Else you can try to claclaulte a measure and placd it on tooltips or you can have a measure on values to show on percentages. 

 

Could you share data or pbix by removing sesitive data.

 

Regards, 

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




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.