Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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.

35 Replies
buzzy996
Master II
Master II

seems to be u don't have max no data for this date 02/10/2014?can u cross check ur source data...pls.

Not applicable
Author

it is there. The out put for ID = Rt0976 is

ID       Region        DateManufacture   No   Kety    Moniyt    Notax

Rt0976       US          02/10/2014      13   677      613

MK_QSL
MVP
MVP

=Max(TOTAL <ID> {<No = {'$(=Max(No))'}, Moniyt = {'$(=Max(Moniyt))'}, Kety = {'$(=Max(Kety))'}>}DateManufacture)

Not applicable
Author

Thanks. Really sorry!. Just I got the requirement changed from the user.

All I need now is to dhow

for eg: ID=Rt0976

I need to show all 39 records.

Can you please change the expression and send me please.

MK_QSL
MVP
MVP

What is you use max(No) or Max(Total <ID> No)

Not applicable
Author

I need Max(No)

so, for ID = Rt0976      No = 13

table should display all 39 rows.

is it possible?

timanshu
Creator III
Creator III

Hi

See attached qvw

MK_QSL
MVP
MVP

I think you try below expression

MAX(TOTAL <ID> No)

and let me know if it's working or not...

Not applicable
Author

Thanks. when I used this the data is showing more.

for eg: In excel for ID = Rt0976   there are 39 rows

but it is showing duplicates more.

Please can sort this.

Not applicable
Author

Please can help me. I am really struggling with this since two days.