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

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

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
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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.