Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Cohort Analysis - Display Rentention as Percentage from Month 0

Hello gurus,

I am trying to create a chart which will allow the users to better understand if retention on cohort months 1,2,etc is improving every month.

To better achieve this instead of displaying a simple COUNT DISTINCT on CustomerID I would like to show a percentage of how many players are still active in cohort month N versus the ones that began in month 0.

Below I have attached a simple example of what I am trying to achieve in table format.

Registration Year MonthMonth CohortActive Customers
2015-010100%
2015-01150%
2015-01245%
2015-020100%
2015-02160%
2015-030100%

Registration Year Month and Month Cohort are precalculated and exist already in the Data model.

To achieve this I am trying to create a temporary second column which no matter the Month Cohort will always return the number of active customers in Month Cohort 0 for users of that registered period. Table below shows what I am trying to achieve for now.

Registration Year Month
Month CohortActive CustomersActive Customers (Month 0)
2015-01010001000
2015-0115001000
2015-0124501000
2015-02020002000
2015-02112002000
2015-03030003000

Active Customers is calculated using the simple expression "COUNT(DISTINCT ActiveCustomer)"

I attempted to achieve the second column using the expression "COUNT({<[MonthCohort]={0}>} DISTINCT ActiveCustomer)" but this is not having the desired result. The result I am getting can be seen below.

Registration Year Month
Month CohortActive CustomersActive Customers (Month 0)
2015-01010001000
2015-0115000
2015-0124500
2015-02020002000
2015-02112000
2015-03030003000

I am trying to calculate the second column so then I can just do the division to get the precentage of retained customers.

I appreciate any help any of you can give me.

Thanks,

Malcolm

1 Solution

Accepted Solutions
Not applicable
Author

Solved it myself by using the TOTAL expression

Expression used is below:

COUNT(TOTAL <CUSTOMER.RegYearMonth> {<MonthCohort={0}>} DISTINCT ActiveCustomer)

View solution in original post

1 Reply
Not applicable
Author

Solved it myself by using the TOTAL expression

Expression used is below:

COUNT(TOTAL <CUSTOMER.RegYearMonth> {<MonthCohort={0}>} DISTINCT ActiveCustomer)