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

Max(Date) from two fields

Hi All,

        I have one requirement where,there are three fields into one table viz.Item No ,Lot No. & posting date

Item No        Lot No       Posting date

A                    A1           08/08/2012

B                    B1           07/08/2012

A                    A2           04/08/2012

C                    A1           09/08/2012

so Max(Date) for A will be 08/08/2012

& Max(Date) for A1 will be 09/08/2012

when I will select A & A1 It will show Max(Date) =09/08/2012

How can I achieve this?

Thanx

1 Solution

Accepted Solutions
Not applicable
Author

Hey,

You could try something like

rangemax(aggr(max([Posting date]),[Item No]),aggr(max([Posting date]),[Lot No]))

Hope that helps,

Frank

View solution in original post

2 Replies
Not applicable
Author

Hey,

You could try something like

rangemax(aggr(max([Posting date]),[Item No]),aggr(max([Posting date]),[Lot No]))

Hope that helps,

Frank

Not applicable
Author

Thanx frankcrezee for your timely & correct response.It helps me to achieve what I wanted.