Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
cedfoning
Creator
Creator

Number of buyers over 3 days

Hello, 

 

i have an issue, need your help. 

I would like to know the number of customers who bought products 3 days after the date of sending the email. 

If an email was sent on 12/05/2023, I want to know the number of customers who purchased between 12/05/2023 and 15/05/2023.

 

Thanks

Labels (5)
7 Replies
vikasmahajan

Hi,

Try like this :

Dimension : Customer 

sum({<Date={"<=$(=Today()-3)"}>} Sales)

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
cedfoning
Creator
Creator
Author

Hello @vikasmahajan 

Thanks for your reply. 
It's not working. 

i have a column email_send_date with the following data : 

cedfoning_0-1684146520889.png

 

i want to count the number of customers who bought products 3 days after those dates. 

vikasmahajan

count({$<Year=, Month=, YearMonth=,Customer={"=min({$<Sales={'>0'}, Year=, Month=, 
YearMonth=, OrderDate={'<=$(=max(OrderDate))'}>} OrderDate)>=$(=max(OrderDate)-3)"}>} 
distinct Customer)

refer this :

http://poverconsulting.com/2014/03/04/set-analysis-nested-advanced-search/

 

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Jaggu
Contributor
Contributor

Hi ,

Create a Variable Box to pick the Email sent Date according to your format.

Count({< email_send_date={{"<=$(Email_Sentdate)"} ,email_send_date={"<=$(=Today()-3)"} >} distinct Customer)

Chanty4u
MVP
MVP

Try this .

Count({<PurchaseDate={">=12/05/2023 <=15/05/2023"}, EmailSentDate={12/05/2023}>} CustomerID)

 

cedfoning
Creator
Creator
Author

hello, 

Here is the script, 

Count({<[CAMP_Email Sending Date]={'<=$(=max([CAMP_Email Sending Date]))'}>} [CAMP_Email Sending Date]) >=$(=max([CAMP_Email Sending Date])-3)"}>} distinct [CUST_LOY_Customer ID])

cedfoning_0-1684156922020.png

can you help please ? 

Kushal_Chawda

@cedfoning  try below. 

=count( {<CustomerID= {"= purchase_date >= email_sent_date and purchase_date<=email_sent_date+3"}>} distinct CustomerID)