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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Harpreet1405_12
Helper III
Helper III

Retention analysis

Dear team,

I am working on calculting the retention between semesters per program, the data is organized in the different format so I am finding it difficult to caluclate the retention. Here is the screenshot of the data ( just one program data)

Harpreet1405_12_0-1742486538289.png

In this image,dates are their audit date ( when i group my data by audit date , then it is giving me right caluclation ), this is the visualization , the data is organized in raw format where each enrolment is listed as one row ( there are 20,000 rows per student_id).

1. This image shows the enrolment numbers semester -wise (1,2,3,4,5,6,7) and so on as this program has 7 semesters

2. the retention should be caluclated semester wise (1-2,2-3,3-4 and so on) if we read first row : 97( nov 2011), 69(march 2012) and so on 

3. there are some of the rows which have null values so we have to consider that as well

 

can you please let me know how should i achieve this in power BI (any feedback would be highly appreciated)

 

1 ACCEPTED SOLUTION

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1742615765524.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

14 REPLIES 14
TomMartens
Super User
Super User

Hey @Harpreet1405_12 ,

 

I have difficulties understanding what data looks like and what you want to achieve. For this reason, I recommend that you prepare a pbix file that contains sample data but reflects your semantic model (tables, relationships, calculated columns, and measures). Upload the pbix to OneDrive, Google Drive, or Dropbox and share the link. If you do not use the manual input method for the sample data, make sure that the sample data is available in a spreadsheet and share this spreadsheet as well.

 

Do not forget to explain the expected result based on the sample data.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

https://docs.google.com/spreadsheets/d/1rEm88TNk8pwqW8lZEsoKuTBvzdWyXG8D/edit?usp=sharing&ouid=11777...

 

Here is the link of the spreadsheet which has a sample data set i am working on. The enrolment data grouped by Audit date make more sense and it will give you the output which is listed in above screenshot ( In this screenshot i transpose the semester data into column and then count the distinct unique id grouped together by audit date). I want to achieve something like this: 

Harpreet1405_12_0-1742586532537.png

 

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1742615765524.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello Ashish,

 

This might be a silly question, but i am trying to understand how the retention is working here as I would like to calculate the semester wise retention grouped by year : as this course has 4 semesters ( i do not know how i am anayzing the retention here)

As you progress through each column of a row, you will see the retnetion percentage of that year.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello Ashish,

 

Can we track by semester ( i mean semester 1 , semester 2, semester 3, and so on)? and also listed by Year. something like this :

Harpreet1405_12_0-1742829961542.png

 

Instead of months

 

Yes, you can.  Please study my solution and adapt it to your needs.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello Ashish,

 

I apply the formula which you gave me for retention analysis , but my output is giving me the sum instead of year by year retention , this is how my output looks like [ also i am trying to use this formula for the multiple programs [ please let me know what i am doing wrong here]

Harpreet1405_12_0-1743691160780.png

 

I appreciate all your help

Thank u

Hi,

In my screenshot, you can clearly see %.  In your screenshots, i see an absolute figure.  So you are obviously missing the division operation.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

The division operation in my case is working like this :

Harpreet1405_12_0-1743771471982.png

I used the exact formula that you used

Recheck the relationships.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

This is great Ashish, it works but i am looking more of a semester wise retention for example : for this particular example : the retention should be calculated like 26 - 26 (100%), then 26- 24( 92%), then 24-23( 95%), is it possible to achieve that and update this following table with semester wise retention across the semester ( please provide your thoughts)

Harpreet1405_12_0-1745330673241.png

 

The retention of unique id from one semetesr to 2 and 2nd to 3rd an dthen 3rd to 4th etc. how many people we loose from start to completion of the module. Does it make sense?

 

This is great, thank you so much for your response

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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