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 September 15. Request your voucher.

Reply
mlovejoy
Helper I
Helper I

DAX virtually create 2 tables base on multiple logique for retention anaylsis

Hello all,

I want to create a Student retention analysis from the initial first term until the end of the curriculum.

I have 3 tables to do that which already have all the information I need. The only thing is create the cohort of New student that have started on the same Quarter and Year (Text). I have 3 possibilities but I m not able to make work any one of them >_<:

  • Be able to put the first Intake Year of each student from the enrollment table in the student table based on Min Date starting, criteria = 1 and and student entry type = New student. From this I could do a related(Student Table (Intake Year) ) in the enrollment table.

  • Directly add a column in my enrollment table that meet all the criteria. (each student ID gets the first Intake Year based on Min Date starting, Criteria = 1 and Entry Type = New student)

  • Create a DAX measure that virtually create a table of unique student ID and have the Intake Year base on the same above criteria. And includes a count row to calculate the number of students.

Any tips? It looks fairly simple as the retention between years exists already in my data. I “just” need to virtually separate my data in New Student and Returning Student with the information of the Intake Year so I’ll be able to create this cohort as shown in the example . I can’t get it right

Screenshot 2022-11-28 at 15.58.08.png

 

 

1 REPLY 1
amitchandak
Super User
Super User

@mlovejoy , check the use of earlier to get the date

 

Power BI Cohort Analysis, Customer Retention %- https://youtu.be/qY1SDF1cwsg

 

Period Of Stay – Cohort Analysis: https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Anal...

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.