Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Wlescrauw
Contributor
Contributor

Remove duplicates

Hi everyone,

I'm making a monitor for our factory on which a supervisor can see if a certain activity has been done on time or not.  To know if an item was on time or not I need to compare 2 timestamps from different tables with eachother, it then states of the item was on time or not - easy to make with a join and a calculated field.

However in the system every movement of an item gets a seperate timestamp and because of this every item has several different movements and different timestamps. This is causing issues for my monitor as I can only show every item once. I need Qlik to only count the latest timestamp of a certain reference as this is the final movement. I have been searching for days to find a solution but so far I have not been able to find anything that works... I am at the end of my knowledge and searching capabilities so I hope the great community here can help me out!

This is an example of the data which I currently receive:

Car Kit ID (Table 1 & 2 same column information)Deadline Tact (Table1)Physical Movement (Table2)On Time?
6141U4115112/09/2019 8:21:002/09/2019 08:05:45YES
0054530609U4100312/09/2019 8:21:002/09/2019 8:50:51NO
0054530609U4100312/09/2019 8:21:002/09/2019 10:20:36NO
0054530609U4100412/09/2019 8:21:002/09/2019 7:20:23YES
0054530609U4100412/09/2019 8:21:002/09/2019 8:50:00NO
0054530609U4200112/09/2019 9:42:002/09/2019 9:32:02YES
0054530609U4200112/09/2019 9:42:002/09/2019 9:40:12YES

 

The result I would like to get:

Car Kit ID (Table 1 & 2 same column information)Deadline Tact (Table1)Physical Movement (Table2)On Time?
6141U4115112/09/2019 8:21:002/09/2019 08:05:45YES
0054530609U4100312/09/2019 8:21:002/09/2019 10:20:36NO
0054530609U4100412/09/2019 8:21:002/09/2019 9:50:00NO
0054530609U4200112/09/2019 9:42:002/09/2019 9:40:12YES

 

Anybody wh

1 Solution

Accepted Solutions
asinha1991
Creator III
Creator III

just inner join your table with max time

something like this

TABLE2_FINAL:

Load *  from TABLE2;

inner join 

Load max(Physical Movement) as Physical Movement,Car Kit ID from Table2 group by  Car Kit ID ;

View solution in original post

3 Replies
Wlescrauw
Contributor
Contributor
Author

The message cut short so I'll add it here:

Anybody who can help me with this problem? I am getting a big headache because of this 🙂

Thanks in advance for your help!
Kind Regards,
Wouter

asinha1991
Creator III
Creator III

just inner join your table with max time

something like this

TABLE2_FINAL:

Load *  from TABLE2;

inner join 

Load max(Physical Movement) as Physical Movement,Car Kit ID from Table2 group by  Car Kit ID ;

Wlescrauw
Contributor
Contributor
Author

Really that simple ... thanks for the help!