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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
madhuqliklondon
Creator II
Creator II

How to get last order date

Hi friends, I am trying to get last order date from customers.

customer noorder numberorder datename countryemail
1212/2/16RichUK-
1225/5/16RichUK-
2417/5//16DaveUSA-
24212/12/16DaveUSA-
35101/12/16TomGE-

I am trying to get what is their last order so that re target the customer via email if they are going laps . Below table is ex . what I want to get . Don't want any repeat customers and want only last order.

customer noorder numberorder datenamecountryemail
1
225/5/16RichUK-
2427/5/16DaveUSA-
3511/12/16TomGE-

Please help to achieve it.

what dimensions and Expressions I have to use?

Column names: Customer_no, Order_number, Order_date,Name, Country and Email.

1 Solution

Accepted Solutions
ahaahaaha
Partner - Master
Partner - Master

Hi,

as variant in attached file.

View solution in original post

3 Replies
avinashelite

Try like this

Dimensions

1. Customer_no

2.Order_number

3.Name

4.Country

5.Email


Expression

Aggr(max(Order_date),Customer_no)

tresesco
MVP
MVP

Use FirstSortedValue() like:

Straight table:

Dim: [customer no]

OrderNum (Exp): FirstSortedValue([order number],-[order date])

....

Capture.PNG

ahaahaaha
Partner - Master
Partner - Master

Hi,

as variant in attached file.