DAX Measure or add column with several filter for retention

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 :frowning:

Hi @marklovejoy

I noticed you didn’t provide a PBIX file. Providing one will help users and experts find a solution to your inquiry faster and better.

A perfect initial question includes all of the following:

  • A clear explanation of the problem you are experiencing
  • A mockup of the results you want to achieve
  • Your current work-in-progress PBIX file
  • Your underlying data file (to allow us to go into Power Query if necessary to transform your data and/or data model – often DAX questions really end up being data modeling solutions)

Check out this thread on Tools and Techniques for Providing PBIX Files with Your Forum Questions

Not completing your data may sometimes cause delay in getting an answer.

Hi @marklovejoy ,

We noticed that your inquiry was left unsolved for quite some time now.

Looks like your inquiry was out of the experts and users’ bounds.

We strive to answer ALL inquiries in the forum. However, if you are sure that you provided all pertinent context to your concerns and read how to use the forum more effectively and still find your question unanswered, you can check out our tutorials to learn this yourself as your membership also comes with relevant resources that may help you with your Power BI education.

While our users and experts do as much as reasonable to help you with your inquiries, not all concerns can be attended to especially if there are some learnings to be done.

Due to the length by which this post has been active, we are tagging it as Solved.

For further questions related to this post, please make a new thread. Please feel free to reopen this thread if anyone would like to answer the pending inquiry above.

Thank you!