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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
TejaThammu15
Regular Visitor

Calculating aggregations/percentages within the same table

Hello all,

 

I am a new user of power bi and seeking help with some calculations. I have a table with with hierarchy and I am looking for percentage calculations that should change as per my selection, the table is 

 

RegionCountrySchoolCampusYear1Year2
AsiaVietnamSchool1Campus1.114684
AsiaThailandSchool2Campus2.121339
AsiaSingaporeSchool3Campus3.19740
LatamBrazilSchool4Campus4.119441
EuropeSpainSchool5Campus5.143069
EuropeUKSchool6Campus6.17632
EuropeUKSchool6Campus6.26316
EuropeUKSchool6Campus6.333053

 

So I am to calculate percentage of change from Year1 to Year 2, I created a column and which results as 

RegionCountrySchoolCampusYear1Year2Percentage(Year1/Year2)
AsiaVietnamSchool1Campus1.11468457.5
AsiaThailandSchool2Campus2.12133918
AsiaSingaporeSchool3Campus3.1974041
LatamBrazilSchool4Campus4.11944121
EuropeSpainSchool5Campus5.14306916
EuropeUKSchool6Campus6.1763242
EuropeUKSchool6Campus6.21468457.5
EuropeUKSchool6Campus6.32133918

 

When I try to show the above in a visual, campus level works fine however I would like the 'percentage' to work for school level too.

TejaThammu15_0-1646783801038.png

TejaThammu15_1-1646783857093.png

Could you please help with this?

 

 

Best Regards,

TTh

 

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @TejaThammu15 ,

 

Please create the measure:

 

Measure = DIVIDE ( SUM ( 'Table'[Year2] ), SUM ( 'Table'[Year1] ) )

vkkfmsft_0-1646978580832.png

vkkfmsft_1-1646978597637.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @TejaThammu15 ,

 

Please create the measure:

 

Measure = DIVIDE ( SUM ( 'Table'[Year2] ), SUM ( 'Table'[Year1] ) )

vkkfmsft_0-1646978580832.png

vkkfmsft_1-1646978597637.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

HI @v-kkf-msft 

 

Thanks for your message, It is what I needed and i did some changes as per my requirement. Thank you very much for your help 🙂

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors