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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Help - Cohort Analysis (Customer Retention) not displaying correct values

Hi,

I want to have a cohort analysis of my customers which I patterned to this: https://www.youtube.com/watch?v=vbg4Je1tuis

 

However, I am not getting the right numbers. 

 

Formula Used: 

 

First Renewal Date = var CurrentCustomer = 'Main Table'[CIDN] RETURN CALCULATE(EOMONTH(MIN('Date'[Date]),0), FILTER('Main Table', 'Main Table'[CIDN] = CurrentCustomer))
 
Months After (Value) = GENERATESERIES(0,12,1)
 
Customer Retention % = VAR CurrentMonthAfter = SELECTEDVALUE('Months After'[Value]) VAR CurrentFirstRenewalMonth = SELECTEDVALUE('Main Table'[First Renewal Date]) return CALCULATE(DISTINCTCOUNT('Main Table'[CIDN]), FILTER('Main Table', EOMONTH('Main Table'[Renewal Date],0) = EOMONTH(CurrentFirstRenewalMonth, CurrentMonthAfter) ))
 
Output: The numbers 1-12 are not appearing. 
 
jdalfonso_0-1623328163131.png jdalfonso_1-1623328208802.png

 

How can I achieve this?:

jdalfonso_2-1623328330848.png

 

Note: I have a date table. 

 

 
2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User
Anonymous
Not applicable

Thanks! This works! 

View solution in original post

3 REPLIES 3
Hariharan_R
Solution Sage
Solution Sage

Hi 

   The method explained in the video works fine. You need to have proper data otherwise it will show only 1 column. if you want to try then use Amit's PBIX data and use the approach and test it.

 

Thanks

Hari

amitchandak
Super User
Super User

Anonymous
Not applicable

Thanks! This works! 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.