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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Shweta_Kumari
Contributor
Contributor

Count of new customers, based on selected product category

Hi,

I had a confusion while going through previous similar threads. My definition for New customers is:

The customers which placed their first order in selected product category.

My dataset contains customer id, product type, invoice date, quantity sold, sales amount.

I wanted to know if I should create a new table in script containing customer id, product category and first purchase date to calculate new customers product wise, or should I achieve it using set analysis.

Thanks in advance!

Labels (2)
1 Solution

Accepted Solutions
QFabian
MVP
MVP

@Shweta_Kumari , you should always prefer to do complex logic in script, in that way, your charts are going easy to do.

And for new customers, you need what you said, a new table or new field, calculating if a customer is new, according to your rules of date of purchase and Category

Consider that the definition of new customer can be for date of first purchase, so a customer that bought once but 6 months ago, can be a new customer, or just the customer with a first buy in x months before.

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.

View solution in original post

2 Replies
QFabian
MVP
MVP

@Shweta_Kumari , you should always prefer to do complex logic in script, in that way, your charts are going easy to do.

And for new customers, you need what you said, a new table or new field, calculating if a customer is new, according to your rules of date of purchase and Category

Consider that the definition of new customer can be for date of first purchase, so a customer that bought once but 6 months ago, can be a new customer, or just the customer with a first buy in x months before.

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
Shweta_Kumari
Contributor
Contributor
Author

Hi @QFabian , Thank you for your suggestion. I tried implementing what you suggested on script by calculating the first purchase date. I don't know why, but the first purchase date for a few customers is wrong. Thus, I am going through the data and code again. Hoping to resolve it soon.

Thanks again for your help.