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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
e175429
Helper IV
Helper IV

Percent of Grand Total vs Line Charts

Hello all,

 

I have the below line chart; the 2 lines represent 2 different years, 2023 and 2024:

e175429_0-1724358513477.png

Instead of the whole numbers you see, I want to show the percentages of the individual lines total.

The dark blue lines total is 370, the light blue lines total is 249.

When I try to change it to "Percentage of grand total", I get the wrong percentages.

e175429_1-1724360505007.pnge175429_2-1724360548772.png

 

Now, I understand where these percentages are coming from. BI is calculating the total of the two lines together (which is 619) and diving the data points by that number.

 

HOW do I get the percentages to divide by the total of that year and not the total of both years?

The total for 2024 = 270

The total for 2023 = 249

 

 

1 ACCEPTED SOLUTION
ahadkarimi
Solution Specialist
Solution Specialist

@hI @e175429, try these measures below, and if you encounter any issues, let me know.

 

Total2023 = CALCULATE(SUM(TableName[Value]), TableName[Year] = 2023)
Total2024 = CALCULATE(SUM(TableName[Value]), TableName[Year] = 2024)
Percent2023 = 
    DIVIDE(
        SUM(TableName[Value]), 
        [Total2023]
    ) * 100
Percent2024 = 
    DIVIDE(
        SUM(TableName[Value]), 
        [Total2024]
    ) * 100

 

 

Did I answer your question?  If so, please mark my post as the solution!
Your Kudos are much appreciated!  Proud to be a Resolver IV !

View solution in original post

2 REPLIES 2
ahadkarimi
Solution Specialist
Solution Specialist

@hI @e175429, try these measures below, and if you encounter any issues, let me know.

 

Total2023 = CALCULATE(SUM(TableName[Value]), TableName[Year] = 2023)
Total2024 = CALCULATE(SUM(TableName[Value]), TableName[Year] = 2024)
Percent2023 = 
    DIVIDE(
        SUM(TableName[Value]), 
        [Total2023]
    ) * 100
Percent2024 = 
    DIVIDE(
        SUM(TableName[Value]), 
        [Total2024]
    ) * 100

 

 

Did I answer your question?  If so, please mark my post as the solution!
Your Kudos are much appreciated!  Proud to be a Resolver IV !

lbendlin
Super User
Super User

When I try to change it to "Percentage of grand total", I get the wrong percentages.

Instead of using implicit measures you need to use explicit measures (ie write your own) to apply the appropriate filters.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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