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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
harirao
Post Prodigy
Post Prodigy

Percentage Row Total not working for 100% Stacked Column Chart

Hi Team,


I am working on a 100% Stacked Column Chart where I want to see the percentage of each quarter along with the Geography breakdown. In the Matrix table, I am getting exactly 100% (sum of APJ, AMS, & EMEA) for each quarter (see the screenshot below for reference).

WW Mix.PNG


However, when I use the same Matrix data in the 100% Stacked Column Chart, the total for each quarter shows diffrent percentage and it automatically adjusts to the Percentage of Grand Total (screenshot attached for reference).

WW Mix2.PNG

Could you please suggest a solution to resolve this issue?


Thank you.

 

2 ACCEPTED SOLUTIONS

@harirao 


That's a basic method to calculate percentage, this might change depending on you logic. If you have issues using this, please share a sample file or logic along with column names.


Perct=

Var overall = CALCULATE(sum(sales),all('Table'))

return DIVIDE(sum(sales),overall,0)

Don't forget to change the data type to percentage for this measure.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!

View solution in original post

Anonymous
Not applicable

Hi @harirao ,
Thanks for  NaveenGandhi reply.

You can try measure below

Measure = 
VAR a = SUM('Table'[Value])
VAR b = 
CALCULATE(
    SUM('Table'[Value]),
    ALLEXCEPT(
        'Table',
        'Table'[Qtr]
    )
)
RETURN
a/b

Final output

vheqmsft_2-1724045725849.png

 

Best regards,
Albert He


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 @harirao ,
Thanks for  NaveenGandhi reply.

You can try measure below

Measure = 
VAR a = SUM('Table'[Value])
VAR b = 
CALCULATE(
    SUM('Table'[Value]),
    ALLEXCEPT(
        'Table',
        'Table'[Qtr]
    )
)
RETURN
a/b

Final output

vheqmsft_2-1724045725849.png

 

Best regards,
Albert He


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

 

 

NaveenGandhi
Super User
Super User

Hi @harirao 

This issue might be due to the decimal palces under datalabel->detail->value decimal places.  try chaning this to 2 places.

Also try to create the percent calculation as a measure and mark it as percentage data type, That's the best practice you can follow.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!

Hi @NaveenGandhi 

As mentioned, I tried changing it to 2 decimal places. Please see the screen print below for your reference.

WW Mix3.PNG
Could you please share a sample DAX measure for the "Percent Calculation"?

Thank you

@harirao 


That's a basic method to calculate percentage, this might change depending on you logic. If you have issues using this, please share a sample file or logic along with column names.


Perct=

Var overall = CALCULATE(sum(sales),all('Table'))

return DIVIDE(sum(sales),overall,0)

Don't forget to change the data type to percentage for this measure.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors