Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get row having max value in straight table

Hello ,

Let's say I have a inline table:

Data:

LOAD * INLINE [

ItemNo, Qty, Date

44444, 100, 24.01.2013

66666, 99, 25.01.2013

55555, 100, 25.01.2013

77777, 50, 24.01.2013

];

The goal is to have in a chart (Straight Table for example) all line having the max value of Qty, for example :

          ItemNo, Qty, Date

44444, 100, 24.01.2013

55555, 100, 25.01.2013

Any idea ?

Thanks in advance for your help .

1 Solution

Accepted Solutions
sunny_talwar

Try this

Dimension

=If(Qty = Max(TOTAL Qty), ItemNo)

Expression

Qty

Date

Capture.PNG

View solution in original post

4 Replies
sunny_talwar

Like this?

Capture.PNG

Dimension

Date

Expression

=FirstSortedValue(ItemNo, -Qty)

=Max(Qty)

Not applicable
Author

Hi and thanks for your help.

It's not realy what I expected :

Taking the same example with 2 new lines :

Data:

LOAD * INLINE [

ItemNo, Qty, Date

44444, 100, 24.01.2013

66666, 99, 25.01.2013

55555, 100, 25.01.2013

77777, 50, 24.01.2013

88888, 200, 21.01.2013

99999, 200, 20.01.2013

];

that's what I expect :

88888, 200, 21.01.2013

99999, 200, 20.01.2013

What I expect  i not the max by date but all lines having qty = max(Qty), that's the difficulty, sorry for my poor English

sunny_talwar

Try this

Dimension

=If(Qty = Max(TOTAL Qty), ItemNo)

Expression

Qty

Date

Capture.PNG

Not applicable
Author

Thanks ! Work fine for me !