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
lkhall
Helper I
Helper I

Cohort Retention Rate with a twist

Good morning, 

 

I have 95% of my Cohort analysis working as expected but there is 1 requirement that I haven't been able to solve. For the cohort retention rate % totals I need to account for the month 0 cohorts that haven't had a chance to reach the given month. As an example shown in attached picture the current month 2 retention rate total calculation is a simple 1098 / 2606 giving you the 42%. But I have to account for the cohorts that haven't reached month 2 so the actual calculation needs to be 1098 / (2606 - 80 - 55) giving you 44%. This calculation would continue on i.e month 3 would then be 969 / (2606 - 80 - 55 -68) = 40%. 

 

Screenshot 2023-06-27 073606.png

 

appreciate any help and advice. 


2 REPLIES 2
johnt75
Super User
Super User

I think that you could get the total you're after with something like

VAR ChosenCohort = SELECTEDVALUE( 'Cohort'[Num months])
VAR Total = CALCULATE( [My measure], DATEADD( ALLSELECTED('Date'[Date]), -ChosenCohort, MONTH) )

Thank you very much I think that got me what I needed. 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors