Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
yoganantha321
Creator II
Creator II

Comparing two table and getting not matched dates

I have a two tables as follows:

table 1:( I have filter one employeeID)

Screenshot_49.png

table 2:( I have filter one employeeID)

Screenshot_50.png

I want to compare the two dates and I wanted the not matched dates from table1 with table2. As below highlighted

Screenshot_51.png

I want the dates 01/01/2017, 01/08/2017, 01/14/2017,01/15/2017 and 01/16/2017 in another table or creating a flag like think for identification..........

I cannot share the documents......... Sorry for the inconvenience.

Regards

Yoganantha Prakash G P

1 Solution

Accepted Solutions
trdandamudi
Master II
Master II

I did a quick sample code based on your logic as below:

Table2:
Load * Inline [
EmployeeID,Date,worked_hours,FName
138,01/02/2017,8.30,Prakash
138,01/03/2017,8,Prakash
]
;

NoConcatenate
Table1:
Load *
Where Not Exists(Date);

Load * Inline [
EmployeeID,Date,FName
138,01/01/2017,Prakash
138,01/02/2017,Prakash
]
;

Drop Table Table2;

Hope this helps...

View solution in original post

4 Replies
MarcoWedel

please post some sample data to test with.

thanks

regards

Marco

trdandamudi
Master II
Master II

I did a quick sample code based on your logic as below:

Table2:
Load * Inline [
EmployeeID,Date,worked_hours,FName
138,01/02/2017,8.30,Prakash
138,01/03/2017,8,Prakash
]
;

NoConcatenate
Table1:
Load *
Where Not Exists(Date);

Load * Inline [
EmployeeID,Date,FName
138,01/01/2017,Prakash
138,01/02/2017,Prakash
]
;

Drop Table Table2;

Hope this helps...

Digvijay_Singh

The field name of both date fields is same or different in your data model?

Anonymous
Not applicable

If you want to keep all the data in your data model and you can make your first table a straight table, maybe you could try something like this:

sum({<Date= e({<sheet_date= {"*"} >} ) >} Rowno())