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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
robertrund318
Regular Visitor

DAX expression for progression of program year over year

I need an expression that will return a quantity of people that have progressed from one program to the next program year over year.

For example, I have 5 people from Program 1 in 2019 that stayed in Program 1 in 2020 and 10 people that progressed to Program 2.  I have 11 people that stayed in Program 2 from 2019 and 15 that progressed to program 3.  I need the expression that will get the number of people that "Progressed to the Next Program" 

 

I've tried a few different things and can get the number of people that stayed in the same program, but not the progression.

 

ProgramProgram 1 2020Program 2 2020Program 3 2020Program 4 2020Progressed to Next Program
Program 1 2019510  10
Program 2 2019 1115 15
Program 3 2019  161818
Program 4 2019   6 

 

Thanks.

1 ACCEPTED SOLUTION

Well, you could brute force it:

Progressed =
SWITCH(
[Program],
"Program 1 2019",[Program 2 2020],
"Program 2 2019",[Program 3 2020],
"Program 3 2019",[Program 4 2020],
BLANK()
)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

7 REPLIES 7
Greg_Deckler
Community Champion
Community Champion

Is that your source data or expected output? 

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

This is example data.  The expected output would be the last column based on the data in the previous columns.

@robertrund318 , there is no data in last reply

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

@amitchandakSorry, I was referring back to the original post and the data there.  I was answering the previous question by @Greg_Deckler 

 

The "Progressed to Next Program" is the column I am trying to come up with an expression for using the data in the previous columns.

ProgramProgram 1 2020Program 2 2020Program 3 2020Program 4 2020Progressed to Next Program
Program 1 2019510  10
Program 2 2019 1115 15
Program 3 2019  161818
Program 4 2019   6 

Well, you could brute force it:

Progressed =
SWITCH(
[Program],
"Program 1 2019",[Program 2 2020],
"Program 2 2019",[Program 3 2020],
"Program 3 2019",[Program 4 2020],
BLANK()
)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Not the most elegant approach, but it did solve the problem.  

Hi @robertrund318 ,

 

Check this file: Download PBIX 

 

Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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