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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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
Partner - Champion III
Partner - Champion III

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
Partner - Champion III
Partner - Champion III

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)