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

Creating a retention table in qlik sense

Hi,

I am trying to make a retention table in qlik sense and I am failing at it with multiple attempts.It would be great if someone could use the attached data and send me a QVF to solve this problem

mtokhaisaaclinchooco_co

Output (which i want):-

The table says for example 10000 users came in Jan16, out of this 7530 came back in Feb and out of 10K 9K came back in Mar. Basically the numbers on the right are subset of the leftmost number

  Note the numbers below are not exact and just a sample output

RetentionJan-16Feb-16Mar-16Apr-16May-16Jun-16Jul-16Aug-16
Jan-1610,0007,5309,0005,3067826,9587,1133,464
Feb-169,0004111,6547,3795,7824,2107,634
Mar-168,0002,3604,9313,7981023,435
Apr-168,8004,6562,2341,3394,235
May-169,0008,7751,5885,244
Jun-164,5002162,008
Jul-167,700747
Aug-162,232

Data Available:-

The data is in the form of date and user_id (attached is the excel)

Pasted image at 2016_09_15 09_44 AM.png

3 Replies
Not applicable
Author

I am still figuring this out. It would be great to have a solution or a workaround

Not applicable
Author

mto‌ Any help here will be appreciated

Not applicable
Author

Hi Vinol,

I use Qlikview, not Qliksense, but I have achieved exactly the same thing by:

1. Creating two tables, one with all the user activity and other with just the first activity per user (like Load user_id, min(date) from [activity table] group by user_id).

2. Then creating two calendars, one for each of the tables, that generate a separate Yearmonth variable for all the activity and the first activity.

3. Create a pivot table with the two yearmonth variables, and count(distinct(username)) as expression.

4. Drag one of the dimensions to columns according to your desired output.

Hope this helps!

Regards,

Jorge