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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
NormanStanleyBadger

Previous Sale Date for Each Unit Sold

Hello,

Is it possible to return the previous sale date for each unit sold as per the table below? I would like to calculate the average number of days between purchases for each customer. Thanks in advance. NSB

SKU SKU Sale Date Customer Previous Sale Date
SKU1 24/08/2023 22/08/2023
SKU2 22/08/2023 15/08/2023
SKU2 15/08/2023 etc 
Labels (4)
1 Solution

Accepted Solutions
Digvijay_Singh

You would need peek/Prev Qlik functions to create your new column, lots of help over here - 

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/use-inter-reco...

 

View solution in original post

2 Replies
Digvijay_Singh

You would need peek/Prev Qlik functions to create your new column, lots of help over here - 

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/use-inter-reco...

 

NormanStanleyBadger
Author

Thank you. I will do a bit of digging and report back, if I can find a solution that fits my needs.