Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello all,
I have the below line chart; the 2 lines represent 2 different years, 2023 and 2024:
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.
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
Solved! Go to Solution.
@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 !
@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 !
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.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.