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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
Roshan_Bhagi
New Member

Percentage Calculation on Stacked Bar Chart

Hey,

 

I have the table below and I would like to calculate the aggregate percentage of A, B, C individually for FY23 and FY24. 

 

TypeFiscal Year
AFY23
AFY23
AFY23
BFY24
CFY24
BFY24
AFY24
BFY23
CFY23
BFY24
CFY23
CFY24

 

I have populated the data in a stacked bar chart and the chart shows the aggregate percentages as follows: Please see chart below.

A: 25% for FY23 and 8% for FY24

B: 8% for FY23 and 25% for FY24

C: 17% for FY23 and 17% for FY24

 

Stacked Bar Calculation.png

 

Instead, I would like the chart to show the aggregate percentages of A, B, C by fiscal year as follows:

 

FY23            FY24

A: 50%         16%

B: 17%          50%

C: 33%          34%

 

I am a newbie to Power BI and any help from you guys is really appreciated. 

 

Thanks!

Roshan

1 ACCEPTED SOLUTION

Anuja_Chaudhari_0-1708497500926.png

 

I have tried same and its working thanks for this something new to get learn .

View solution in original post

4 REPLIES 4

Anuja_Chaudhari_0-1708497500926.png

 

I have tried same and its working thanks for this something new to get learn .

lbendlin
Super User
Super User

lbendlin_0-1708383494215.png

 

Hey,

 

Thank you for your quick response. 

 

I have applied the settings from the screenshot that you have shared; however, I don't see the desired percentages. 

 

Am I missing something?

 

Thanks!

Roshan

 

 

Hi @Roshan_Bhagi ,

If you want to see percentages on your 100% Stacked Bar Chart view you can open Data labels under Visual.

vyilongmsft_0-1708495148688.png

If you need to remove the decimal point, you can do so, just set the Value decimal places under Detail to zero.

vyilongmsft_1-1708495505710.png

Then you will see what you want.

vyilongmsft_2-1708495555903.png

 

 

Best Regards

Yilong Zhou

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

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.