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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Calculate Graduations of a students

Hi All, 

 

I have this issue and I will appreciate your help..

 

I have this data set .of students (5 in this example) and I would like to know when they graduate

simo12447_Uni_0-1664969200125.png

in this example the yellow.. i.e. the first student is graduating in Jan 23.. 

simo12447_Uni_1-1664969341805.png

I have already created the model... but with my list expand ... I only know until they appear as 1.. not when they became 0. (yellow)

Any idea?

 

I have added the excel with my query..

https://docs.google.com/spreadsheets/d/1QRfYxJoHUWaSwJ9H6o6QN3gzNBzxdgK-/edit?usp=sharing&ouid=10001... 

 

Thanks so much in advance.

Simone

 

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 
Please refer to attched sample file with the solution

1.png1.png

Rolling Enollment:=
VAR CurrentDate= MAX('Calendar'[Date])
RETURN
    SUMX(
        CALCULATETABLE(VALUES(Table1[Matricula]),'Calendar'[Date]<=CurrentDate,ALL('Calendar')),
	CALCULATE(MAX(Table1[Enrollment]), ALL('Calendar'))
    )

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @Anonymous 
Please refer to attched sample file with the solution

1.png1.png

Rolling Enollment:=
VAR CurrentDate= MAX('Calendar'[Date])
RETURN
    SUMX(
        CALCULATETABLE(VALUES(Table1[Matricula]),'Calendar'[Date]<=CurrentDate,ALL('Calendar')),
	CALCULATE(MAX(Table1[Enrollment]), ALL('Calendar'))
    )
Anonymous
Not applicable

thanks @tamerj1  this definitely works in DAX. but I am looking to solve in power editor.. because this is the first of multiple steps.

Anonymous
Not applicable

@tamerj1 it looks similar to something you have created here..  https://community.powerbi.com/t5/DAX-Commands-and-Tips/Calculate-Student-Journey/m-p/2684876#M80554 but I am not sure how to apply in Power Editor. Thank

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.