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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
nctvhk
New Member

100% Stacked Column Chart Percentage

Hello Community,

 

Under 100% stacked column chart, can I have the chart considering negative value and show the % (yellow cells) as below?

nctvhk_1-1627806883656.png

 

It looks like the chart will convert negative numbers to positive as the base of the total amount.

 

Thanks all.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @nctvhk ,

 

Sorry for my late reply.

Here's my solution.

 

1.Unpivot the table in Power Query

1.png

 

2.Because there can only be one field in the axis, we have to merge the two columns to create the following calculated column.

P&U = [Period]&"-"&[Unit]

2.png

 

3.Create the following measure

Measure = DIVIDE(SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[P&U]),[Attribute]="Sales")))

 

4.The result circled in the red box is the result you want, you can check it.

3.png

 

More details in the attachment.

 

 

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

4 REPLIES 4
Anonymous
Not applicable

Hi @nctvhk ,

 

Sorry for my late reply.

Here's my solution.

 

1.Unpivot the table in Power Query

1.png

 

2.Because there can only be one field in the axis, we have to merge the two columns to create the following calculated column.

P&U = [Period]&"-"&[Unit]

2.png

 

3.Create the following measure

Measure = DIVIDE(SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[P&U]),[Attribute]="Sales")))

 

4.The result circled in the red box is the result you want, you can check it.

3.png

 

More details in the attachment.

 

 

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.

Samarth_18
Community Champion
Community Champion

Hi @nctvhk 

 

You can use stacked column chart and put your category column which consist value like EBITA etc under legend and put your percentage column under  Values

Samarth_18_0-1627809067380.png

It will show your negative value as it is.

Samarth_18_1-1627809104065.png

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Thanks @Samarth_18 ,

 

My dataset is like this:

nctvhk_0-1627843884670.png

 

In this case if I use the stack column solution you provided and take the hard coded percentage column as value, when I select filter/slicer (e.g. Period 1, Unit A+B), it seems the result will just average/sum the hard-coded percentage instead of showing the correct %.

 

Thanks.

 

@nctvhk 

you need to unpivot the table and create a measure

Measure = sum('Table'[Value])/CALCULATE(sum('Table'[Value]),ALLEXCEPT('Table','Table'[Period]))

and use stacked column

1.PNG

pls see the attachment below





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

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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