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: 
aminqlik
Contributor
Contributor

How to filter the latest time in Qlik sense

Hello:

   Need your help. I have initial QVD file format as below shows.

aminqlik_0-1597464138408.png

But I would like to get the output QVD file that only show the latest 'D Time' by 'Pdn name'.

Expected result:

aminqlik_1-1597464585449.png

Thanks your help.....

 

Labels (1)
1 Solution

Accepted Solutions
rubenmarin

Hi, load incial qvd and do an inner join with the max date for each pdn to keep only those files, somewhat like:

Data:
LOAD * From [Path\qvdname.qvd](qvd);

Inner Join (Data)
LOAD [Pdn name],
  max([D Time) as [D Time]
resident Data
Group By [Pdn name];

Store Data into ReducedQvdName.qvd(qvd);

View solution in original post

2 Replies
rubenmarin

Hi, load incial qvd and do an inner join with the max date for each pdn to keep only those files, somewhat like:

Data:
LOAD * From [Path\qvdname.qvd](qvd);

Inner Join (Data)
LOAD [Pdn name],
  max([D Time) as [D Time]
resident Data
Group By [Pdn name];

Store Data into ReducedQvdName.qvd(qvd);
aminqlik
Contributor
Contributor
Author

Hi Rubenmarin:

      Thank you very much for solution. 

Regards,

aminqlik