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

Return the Max date of multiple IDs

I have a shortage table which contains the delivery dates of shortage components and a separate Orderbook table which contains customers purchase orders (made up of multiple components) these are connected through a primary key the sales order.   

I am trying to add a calculated column to the orderbook table, or can do it in a load statement (whichever is more logical).  Where I return the latest date of the components linked to that sales order. 

My idea was to use MAX to find the latest date and then match the sales orders but no luck!  

= MAX({match([Sales Order],[Sales Order])}, [Delivery/order finish date])

How would I go about solving this? 

Thanks. 

Labels (3)
1 Solution

Accepted Solutions
Ksrinivasan
Specialist
Specialist

hi,

use this example, my dummy data

Ksrinivasan_0-1611113113351.png

table created with above data to find max date and wrt. ID

Ksrinivasan_1-1611113293210.png

ksrinivasan

 

View solution in original post

1 Reply
Ksrinivasan
Specialist
Specialist

hi,

use this example, my dummy data

Ksrinivasan_0-1611113113351.png

table created with above data to find max date and wrt. ID

Ksrinivasan_1-1611113293210.png

ksrinivasan