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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ecabanas
Creator II
Creator II

How calculate recurrency

Hi guys,

I'm doing a table to calculate the cohort o customer recurrency . For example

The calculation is, how many customers return in the following months:

2016-01-29_14h04_34.png

Many thank's guys

15 Replies
sunny_talwar

I see what you mean now. I will come back with an expression that will do that

sunny_talwar

Although there might be an easy way to do this, but I came up with this expression which seems to work except for some reason it hides the dimension when the value = 0. I think we need expert advice here from swuehl

I am sure he not only will get a simplified version of this expression, but will also resolve the other issue of hiding dimension.

Count(DISTINCT {<Customer = p({<Order = p({<MonthYear = {"$(=vVar)"}>})*p({<Order = {"=Month([Date Order]) = Month(FirstOrder)"}>})>})>}Order)

Best,

Sunny

swuehl
MVP
MVP

Sunny,

your solution seems to work for me, even showing dimensions with zero value in the expression.

Attached another approach.

sunny_talwar

I had a hidden column (Count(Customer)) which was letting me show the 0 months. I have disabled that, can you check now.

Capture.PNG

ecabanas
Creator II
Creator II
Author

Hi Sunny,

I'm going to stress the function and I hope it will work in the real model

Crossing fingers!!!!

Many thank's for your help

sunny_talwar

Do look at Stefan's expression as well.