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

How to show rows only have top values?


Hi,

I have data as below. How to get the table in qvw only to show rows which is Max(No)

for eg:

considering below sample data I need to show output only the row

S908779       US          11/06/2013       20         19038                 56                     64563

IDRegionDateManufactureNoKetyMoniytNotax
S908766US11/03/2013200
S908767US11/03/201310461461
S908768US11/03/20138461
S908769US01/04/20131461461
S908770US11/04/201310461461
S908771US11/04/20138510461
S908772US11/04/20132034535523423
S908773US01/05/20131461461
S908774US11/05/20138510461
S908775US11/05/201310461461
S908776US11/05/201320345345534
S908777US01/06/20131461461
S908778US11/06/201310461461
S908779US11/06/201320190385664563
S908780US11/06/20138510461
S908781US01/07/20131461461
S908782US11/07/201310461461
S908783US11/07/201313510461
S908784US11/07/20138461
S908785US11/07/20132024565465
S908786US01/08/20131461461
S908787US11/08/201310461461

Can anyone suggest me please.

Thanks.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Create a Straight Table....

Use Dimension Fields DateManufacture, Kety, Moniyt, Notax, Region, ID

Expression

IF(No = Max(TOTAL <ID> No), No)

Go to Presentation Tab

Tick Suppress Zero Values

Hope this would work.. !

View solution in original post

35 Replies
sunny_talwar

There are other rows that have no = 20 why would you exclude them from your output for the constraint you have. Are you looking for Max(Kety) instead?? then the output would make sense.

Best,

Sunny

Not applicable
Author

yes you are right. I need the Max(No) and the corresponding max values for this Max.

Is it possible?

please help me.

MK_QSL
MVP
MVP

What is Max(No)?

Not applicable
Author

sorry. that I mean is Maximum value of the column No

MK_QSL
MVP
MVP

Can you provide few lines of sample data please?

Not applicable
Author

Please see attached and help me.

Anonymous
Not applicable
Author

Would using a Straight Table with the Dimensions you want and an Expression like this help ?

only ( { <No={'$(=max(No))'}>} No )

Not applicable
Author

Thanks. This is showing all values for maximum 20. But I need to display only one row. so, for

ID = S908779 I need straight table to show only

S908779    US    11/06/2013   20    19038      56   64563

is it possible. Please help. I have tried many ways but nothing seems working.

settu_periasamy
Master III
Master III

Put like this

only ( { <No={'$(=max(No))'},Kety={'$(=max(Kety))'}>} No )