Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
laura_lacey
Contributor
Contributor

Last Order Date

I'm trying to get a table to bring back the last order date for a supplier based on the last PO date. 

I'm using 

=FirstSortedValue(distinct [PO date.autoCalendar.Date],[PO Number])

which brings back the first date. so 01/01/2018 rather than 21/06/2021 

but if I use: 

=FirstSortedValue(distinct -[PO date.autoCalendar.Date],[PO Number])

it brings back a result such as 20/06/1786 

 

Can you let me know where I'm going wrong here please. 

Labels (2)
2 Replies
Chanty4u
MVP
MVP

try this

=FirstSortedValue(distinct [PO date.autoCalendar.Date],-[PO Number])

 

sample below 

Chanty4u_0-1647256928057.png

 

anat
Master
Master

can u try like:

=FirstSortedValue(distinct [PO date.autoCalendar.Date],-[PO Number])