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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Paramjit
Helper II
Helper II

Show Percentage in lables in Stacked Column Chart

Hi Team,

There is a requirement to show the percentage in Stacked Column Chart.

CategorySubCategoryValue
AChair100
BTable200
Mirror300
ACrockry400
BLamp500
Fan600

 

Below graph is showing the lables in numbers. Requiement is to show the percentage instaed of numbers.

 

Percentage should be by Category (not by Grand total).

And size of bars should not change.

 

Capture 1.PNG

 

 

I am able to create custom column to get the percentage but when i am using that custom column , graph is changing to 100% stacked chart.

As below, Graph is changing to 100% stacked chart.

 

Capture.PNG

 

Thank you,

Paramjit.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Paramjit ,

 

Try this measure

Measure = var _totalbycategory=CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Category]))
return DIVIDE(SUM('Table'[Value]),_totalbycategory)

vstephenmsft_0-1637739483904.png

 

 

Best Regards,

Stephen Tao

 

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

5 REPLIES 5
Anonymous
Not applicable

Hi @Paramjit ,

 

Try this measure

Measure = var _totalbycategory=CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Category]))
return DIVIDE(SUM('Table'[Value]),_totalbycategory)

vstephenmsft_0-1637739483904.png

 

 

Best Regards,

Stephen Tao

 

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

 

Hi  @Anonymous , as in your grpah it is changing to full stack chart. the requirement is to retain the bars lengh as when it shows using numbers. it is possible in Tableau but i am not able to get the same in Power BI.

Paramjit
Helper II
Helper II

Team, Any help on this issue please.

amitchandak
Super User
Super User

@Paramjit , You need to plot a visual on %  of subtotal column

 

divide(sum(Table[value]) , calculate(sum(Table[Value]), removefilters(Table[SubCategory]) ) )

 

Plot that on visual

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  it is returing the data as below:

 

Capture 2.PNG

 

Column 2 = CALCULATE(SUMX(Sheet1,Sheet1[Value]),ALLexcept(Sheet1,Sheet1[Category]))
Column 3 = CALCULATE(SUMX(Sheet1,Sheet1[Value]),ALLexcept(Sheet1,Sheet1[Category],Sheet1[SubCategory]))
 
column = divide( Sheet1[Column 3],Sheet1[Column 2])
 
above custom "column" is returing the correct percentage. But stacked chart is changing into 100% chart.
 
Please help.

 

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.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors