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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
rcandeo
Creator III
Creator III

How to join two tables with date?

Hi, I have two tables like these:

Worker:

Name,

DateTime_Initial,

DateTime_Final,

Equipment

Production:

Equipment,

Date_Time,

Lot_Number

The first table has the names of the workers for each of the equipments in each date/time. It won´t happen to have more than a worker in the same equipment in the same date/time

The second table has the production of each equipment and it will have dozens of lines for each equipment by hour.

I need to have just one table linking the worker with the production, so I´ll know in the end wich is the production for each worker.

I´ve tried to use interval match but I don´t know how to put the equipment in the logic.

Best

Robson

Labels (1)
1 Solution

Accepted Solutions
ronaldocarrijo
Partner - Contributor III
Partner - Contributor III

Sorry, this right now:

View solution in original post

5 Replies
ronaldocarrijo
Partner - Contributor III
Partner - Contributor III

Use this:

rcandeo
Creator III
Creator III
Author

Hi, Look your table that didn´t work. The result is

NameEquipmentDate_TimeDateTime_InitialDateTime_FinalLot_Number
AX01/01/2013 15:00:0001/01/2013 12:00:0001/01/2013 18:00:001
AX01/01/2013 19:10:0001/01/2013 12:00:0001/01/2013 18:00:002
BX01/01/2013 15:00:0001/01/2013 18:00:0101/01/2013 22:00:001
BX01/01/2013 19:10:0001/01/2013 18:00:0101/01/2013 22:00:002
CY02/01/2013 13:40:0102/01/2013 18:00:0101/01/2013 22:00:004
CY02/01/2013 18:30:0102/01/2013 18:00:0101/01/2013 22:00:003

This table have a duplication for lot number 1 and 2.

Lot number one should be with worker A only and lot two with worker B only.

rcandeo
Creator III
Creator III
Author

anyone can try to help me please?

ronaldocarrijo
Partner - Contributor III
Partner - Contributor III

Sorry, this right now:

rcandeo
Creator III
Creator III
Author

Thank You Very Very Much!