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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
chinnu123
Creator
Creator

Need help

Hi Team,

I have  a requirement to fetch unique incident Id's based on the last updated date.

First I need to find a record num based on incident id and Lastupdated date.

for example For Incident Id INC001123 we are having 5 lastupdated dates so here we need to take recent last updated date(i.e 9/1/2017) as first record and 8/1/2017 as record 2 in the same way remaining records must be stored in record num field.


here i am providing my sql expression based on this i need to write in qlik. Can anyone please help me  in this


For row_number() over (partition by Incident Id order by Lastupdated date desc)

   

Incident Id                              Lastupdated date      Status
INC0011235/22/2017 1:11      open
INC0011235/19/2017 9:17     review
INC0011237/26/2017 1:11         closed
INC0011238/1/2017 1:11      review
INC0011239/1/2017 1:11     Approved
INC0011246/26/2017 1:11     open
INC0011248/27/2017 1:11        open
INC0011242/28/2017 1:11           open
INC0011244/29/2017 1:11             open
INC0011247/30/2017 1:11

                open

Thanks,

Chinnu.

11 Replies
vinieme12
Champion III
Champion III

can you post your Script?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

i'm able to get the correct output

peek().JPG

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.