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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to Load top 1 row for each category in QV 9

Hey friends,

I have a requirement wherein i need to Load top 1 record per category.

StudentIDNameMarksYearMonth
1Girish60201306
1Girish70201307
1Girish80201308
1Girish90201309
2Raj65201306
2Raj75201307
3Ajay55201308
3Ajay75201309

Expected Output:

StudentIDNameMarksYearMonth
1Girish90201309
2Raj75201307
3Ajay75201309

I want 1 records per max of YearMonth

Sorry guys i am new to Qlikview Tech.

I had tried doing:-

Abc:

Load First 1 *

from excelfile;

But it doesn't worked i want 1 row for each StudentID.

Could anyone pls assist me.. on this....

Thanks & Regards,

Girish Chhatani

1 Solution

Accepted Solutions
Not applicable
Author

Try this:

LOAD *

FROM excelfile;


inner join

LOAD StudentID,

          max(YearMonth)    as YearMonth

FROM excelfile group by StudentID;

Gio

View solution in original post

1 Reply
Not applicable
Author

Try this:

LOAD *

FROM excelfile;


inner join

LOAD StudentID,

          max(YearMonth)    as YearMonth

FROM excelfile group by StudentID;

Gio