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

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

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.

Top Solution Authors
Top Kudoed Authors