Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
poojashribanger
Creator II
Creator II

Monthly Customer retention Chart in qlik

Hi All,

I have a source table that contains player activity details with the following columns:
Date, PlayerID, and GameID.

I’m trying to analyze player retention — specifically, I want to identify how many players who started playing on a given date have continued playing in subsequent months.

My goal is to generate an output table in Qlik with the following structure, where each row represents the cohort of players who started on that date, and each column shows how many of them remained active in the following months:

 Retention Month
DATE01/01/202502/01/202503/01/202504/01/202505/01/202506/01/202507/01/202508/01/2025
01/01/202510096959493929180
02/01/202510197969594939281
03/01/202510298979695949382
04/01/202510399989796959483
05/01/2025104100999897969584
06/01/20251051011009998979685
07/01/202510610210110099989786
08/01/2025107103102101100999887

 

Thanks in Advance,

Regards,
Poojashri

Labels (2)
3 Replies
marcus_sommer

I doubt that there are sensible solutions within the UI respectively I suggest to do the essential work within the data-model. This may include to load the data (n times) within an appropriate sorted resident-load to check the previous records and creating (n) flag/counter-fields with interrecord-functions like previous() and peek() - maybe like:

load
   PlayerID, Date,
   if(PlayerID = previous(PlayerID),
     if(Date = addmonths(previous(Date), -1), x, y), z) as Flag
...

to create 1 to n and/or 0/1 flags and/or continuous (overall and/or this run) counter and/or period-offsets and/or to flag the first/last occurrence  (might be also added with aggregation-loads against min/max Date) and/or ... 

poojashribanger
Creator II
Creator II
Author

The table has millions of record and for each date n number of players.
I did it in a different approach but i am having some issue on the front end now.

I can show both measure against 1 single month column.

poojashribanger_0-1751964679460.png

 

marcus_sommer

I'm not sure how to approach to this challenge - creating a pivot-crosstable against two period-fields. The simplest one would be just to double the existing date-field and to look if there are possibilities to add the wanted counting against them.

For this and maybe other trial & error approaches I would create a dummy-app with a small data-extract of maybe 3 dozens records and without much further logic to test different ways - at first displaying the periods and then getting any valiable expression-results.