Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Count distinct new and old client

Hello,


I have a customer base on orders of 36 months of purchase.I wanted to know if we could from a period of date to verify if this same customer has already ordered over the last 24 months to know if It is a new or old customer to subsequently caculate a number of old and new customers


clients.JPG



thanks for your help

1 Solution

Accepted Solutions
ahaahaaha
Partner - Master
Partner - Master

Hi,

May be like in attached file

Regards,

Andrey

View solution in original post

3 Replies
ahaahaaha
Partner - Master
Partner - Master

Hi,

May be like in attached file

Regards,

Andrey

Anonymous
Not applicable
Author

Hi,

Thanks for your help

This is practically that but why does not it work when I select a date and more it is possible to get at the end only two figures. A separate discount from customers for old and another for new?


regards

Anonymous
Not applicable
Author

Hello, I wanted to thank you for your help not looking with your track I found a solution


New client=>301 = Sum(If(Aggr(Min({<Date=>} Date), [Code Client]) < AddMonths(vDateDébut,-24), 1, 0))


new_client.JPG