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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

How to pickup only last record per user distinct load

Dear all

I have following type of data user wise

 

So  in QV load i want to show only single last row per user.

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Try this,

Data:

LOAD user_sid,

     User_Name,

     [Manager SID],

     [Direct Manager],

     [Status in ID Vault],

     charge_month

FROM

[Book1 (1).xlsx]

(ooxml, embedded labels, table is Sheet1);

Inner Join(Data)

Load  user_sid,

     Max(charge_month) as charge_month

Resident Data

Group By user_sid;

View solution in original post

6 Replies
vikasmahajan
Author

Actually user wise i want to create a list for last updated record for above case

E007569Hecker,Jill Marie (E007569)R295607Praneet JayaramTerminated201605

will be the o/p  which is most recent record for this user.

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
vikasmahajan
Author

This is only one user details i have so many users , per user i want to pickup only last updated record.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Anonymous
Not applicable

Hi Vikas,

Have you tried with Max(charge_month) ?

tamilarasu
Champion
Champion

Try this,

Data:

LOAD user_sid,

     User_Name,

     [Manager SID],

     [Direct Manager],

     [Status in ID Vault],

     charge_month

FROM

[Book1 (1).xlsx]

(ooxml, embedded labels, table is Sheet1);

Inner Join(Data)

Load  user_sid,

     Max(charge_month) as charge_month

Resident Data

Group By user_sid;

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Try to use LastValue statement.

vikasmahajan
Author

yes

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.