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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Calculating % growth over the years

Screenshot (2).pngMy data looks like this. For each district name there is the data of total population for 2017, 2016,2015,2014 and 2013. I want to calculate the % change from the previous year for every district for every year. Please help @Mubashir 

1 REPLY 1
Stachu
Community Champion
Community Champion

try this or a measure (not calculated column):

Growth = 
VAR __Year = MAX('Table'[Year])
VAR __ThisYearValue = CALCULATE( SUM('Table'[Total]), 'Table'[Year] = __Year)
VAR __PreviousYearValue = CALCULATE( SUM('Table'[Total]), 'Table'[Year] = __Year - 1)
RETURN
DIVIDE(__ThisYearValue-__PreviousYearValue,__PreviousYearValue)

then put the Year and District in the visual you want (don't summarize years) and add the measure

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.