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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mljones
Frequent Visitor

Percent of Column instead of Grand Total?

Hopefully I'm wording this correctly.

I have a dataset that is looking at students who registered for classes on time. I have a column for each registration term. I produced individual visuals like the ones shown here:

Reg_SS1.jpg

Ideally, I'd like to display these on a single visual to make for better readability since our goal is to compare the percentage of students who registered on time by term. When I attempt to place them on a single visual, it calculates the percentages by the grand total. But ideally, I want SP2022 to calculate to 100% and so on for SP2023 and SP2024. Below is an example of what is occurring. 

 

Reg_SS2.jpg

 

Any tips on how I can accomplish this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mljones 

 

Based on the screenshots you provided, your issue seems to be that individual visuals aren't grouped by semester to calculate percentages.

 

Based on my guess, it may be that you chose "Percent of grand total", which doesn't group the data, but instead calculates the percentage after summing.

vnuocmsft_0-1703640450965.png

 

You'll need to create measures manually, and here's how we do it:

 

Here's some dummy data

vnuocmsft_1-1703640472908.png

 

You can create a measure like this, which groups and sums your semesters and then calculates the percentages

vnuocmsft_2-1703640495838.png

 

result = var total_number_m = CALCULATE(SUM(Sheet1[Number of students]), FILTER(ALL('Sheet1'), [semester] = max(Sheet1[semester])))
var number_of_student = SELECTEDVALUE('Sheet1'[Number of students])
return DIVIDE(number_of_student, total_number_m)

 

 

The default is an integer type, and you need to change measure to a percentage type

vnuocmsft_3-1703640655550.png

 

Here is the result

vnuocmsft_4-1703640692330.png

And you can choose the "Data labels" impression percentage

 

vnuocmsft_5-1703640717497.png

 

Best Regards,

Nono Chen

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

3 REPLIES 3
Anonymous
Not applicable

Hi @mljones 

 

Based on the screenshots you provided, your issue seems to be that individual visuals aren't grouped by semester to calculate percentages.

 

Based on my guess, it may be that you chose "Percent of grand total", which doesn't group the data, but instead calculates the percentage after summing.

vnuocmsft_0-1703640450965.png

 

You'll need to create measures manually, and here's how we do it:

 

Here's some dummy data

vnuocmsft_1-1703640472908.png

 

You can create a measure like this, which groups and sums your semesters and then calculates the percentages

vnuocmsft_2-1703640495838.png

 

result = var total_number_m = CALCULATE(SUM(Sheet1[Number of students]), FILTER(ALL('Sheet1'), [semester] = max(Sheet1[semester])))
var number_of_student = SELECTEDVALUE('Sheet1'[Number of students])
return DIVIDE(number_of_student, total_number_m)

 

 

The default is an integer type, and you need to change measure to a percentage type

vnuocmsft_3-1703640655550.png

 

Here is the result

vnuocmsft_4-1703640692330.png

And you can choose the "Data labels" impression percentage

 

vnuocmsft_5-1703640717497.png

 

Best Regards,

Nono Chen

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

 

 

 

Thank you!

Ritaf1983
Super User
Super User

Hi @mljones 
It seems possible with dynamic measures (using selectedvalue function).
For more specific suggestions provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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.