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
lnschne2
Frequent Visitor

How to calculate a percent change between terms (i.e, fall to fall)

Hello, I'm new to Power BI, and I want to do a percent change of enrollment between terms.  I've done percent changes between months but not terms.

 

Here's how the data is set up 

lnschne2_0-1675349254325.png

 

First, I essentially need to sum all enrolled by term.  For instance, let's say there were 200 enrolled in Fall 2021, 300 enrolled in spring 2022 and 400 enrolled in fall 2022. 

 

I want to create a visual that shows the percent change between each term.  

 

Does anyone know how I could do that or write it in DAX?  

 

Thanks for your help! 

1 REPLY 1
amitchandak
Super User
Super User

@lnschne2 , Create a separate table with semester with year, and other details. It should have one column like YYYYSS

Year Semester , Year, Semester  , Semester name

202101, 2021,1,spring

202102, 2021,2,fall

202201, 2022,1,spring

202202, 2022,2,fall

 

Join this back with your table on Year Semester

 

Create a rank on Year Semester, a new column

SemesterRank = RANKX(all('Date'),'Date'[Year Semester],,ASC,Dense)

 

This Semester= CALCULATE(Count('Table'[id]), FILTER(ALL('Date'),'Date'[SemesterRank ]=max('Date'[SemesterRank ])))
Last Semester= CALCULATE((Count('Table'[id]), FILTER(ALL('Date'),'Date'[SemesterRank ]=max('Date'[SemesterRank ])-1))

 

Power BI Custom Period Till Date (PTD)- https://youtu.be/rQ3Z_LtxwQM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.