Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
VamsiBhagavathula1

How to retrieve status value per key for max update date

Hello,

i am loading the excel into qliksense and i want to retrive status for each key based on max update ts.

Can anyone suggest how could we retrieve this using apply map logic? or could we achive it formula itself in a dimesion.

Thanks

Vamsi

Labels (3)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Assume you data has already been loaded to a Qlik table name "Data". 

Left Join(Data)
LOAD
  KEY,
  FirstSortedValue(STATUS, -UPDATE_TS) as LatestStatus
Resident Data
Group By KEY
;

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

View solution in original post

3 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Assume you data has already been loaded to a Qlik table name "Data". 

Left Join(Data)
LOAD
  KEY,
  FirstSortedValue(STATUS, -UPDATE_TS) as LatestStatus
Resident Data
Group By KEY
;

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

VamsiBhagavathula1
Author

@rwunderlich thanks for your response. Is there a way to do it with Apply map rather than Left join?

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Yes. Use the same Load statement to create a Mapping table instead of Join.  Then use the mapping table in an ApplyMap() or Map Using. 

-Rob