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: 
rkpatelqlikview
Creator III
Creator III

How to find last 3 Sales of the customer when entering the Customer ID

Hi All,

Can anyone help on this?

How to find last 3 sales of the customer once i enter the customer id?

Example: Entered Customer Id is A202.

I need last his sales

100+200+300 =700.

How to solve this? Thanks in advance

DateSalescustomer ID
27.10.2017200  A202
30.10.2017633A202
02.10.2017100A202
06.10.2017200A202
25.11.2017300A202
1 Solution

Accepted Solutions
sunny_talwar

When you say entered, do you mean when you select a particular customer id?

May be this:

Sum({<Date = {"$(='>=' & Date(Max(Date, 3), 'DD.MM.YYYY'))"}>}Sales)

View solution in original post

2 Replies
sunny_talwar

When you say entered, do you mean when you select a particular customer id?

May be this:

Sum({<Date = {"$(='>=' & Date(Max(Date, 3), 'DD.MM.YYYY'))"}>}Sales)

rkpatelqlikview
Creator III
Creator III
Author

Thanks Sunny