Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

customer count, new,lost, total

I have the following logic to calculate

Lost Customer - hasn't bought anything the last two years

New Customer - bought something this year, but nothing the last two years

Total Customers - everyone who has bought something this year

i have attached my model to this post.

i worked out how to calculate New Customer , however am really battling with the other two lost customer and Total customer.

any help is greatly appreciated.

Best,

Brad

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Please find attached file for solution.  Calculated Total and Lost customer in script.

Hope this helps you.

Regards,

Jagan.

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Try this  =if(Count(Year(Year) = 2013),sum(amt))  I hope it helps!

jagan
Luminary Alumni
Luminary Alumni

Hi,

Please find attached file for solution.  Calculated Total and Lost customer in script.

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Total Customers can be done by :

Count(DISTINCT {<Year={2013}>} customer)

Not applicable
Author

Hi,

New customer can be done by :

= count({<Year=-{2012,2011}>} distinct customer)

Total customer :

= count  (distinct customer)

Lost customer:

= count({<Year=-{2012,2013}>} distinct customer)