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: 
ajsjoshua
Specialist
Specialist

Revisit calculation

Dear all,

I want to calculate the count of customers who revisited again.In this case customerid 1 purchased 3 products on same date but on different time i dont want to calculate revisits in same day.Revisit should be based on different date.

My output should be

count of revisit is 2.(only customerid 1 and 2 revisited again)


PFA for app

   

customeridDateProductrevenue
11/1/2017dfg4000
11/1/2017ass3000
11/1/2017rer1000
2        23/1/2017wes6000
2        25/1/2017tre2000
34/2/2017ewe5000
45/2/2017asa7000
17/2/2017adas10000
13 Replies
sunny_talwar

What is the expected output?

ajsjoshua
Specialist
Specialist
Author

Hi Sunny,

In this case out of 9 customer visits there is 3 revisits (customerid 1 once and customerid 2 twice)

so (3/9)*100=33.33%

sunny_talwar

This

Num((Count({<customerid *= {"*"}>}DISTINCT customerid&Date) - Count(DISTINCT customerid))/Count(customerid), '##.##%')

ajsjoshua
Specialist
Specialist
Author

Dear Sunny,

Thank You very much.

Regards,

Joshua.