Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mtucholski
Creator
Creator

IntervalMatch with two fields multiplying records

Hello,

I was looking for some solution but no luck. Haven't found the case im struggling with so I decided to post it. i will apprecieate some help.

I need to connect the event with the product id. It works fine with just the timestamp, but no luck with another field key (machine).

My script is looking like that:

Events:
load
machine,
event,
time
from X
;

Order:
load
machine,
time_to,
time_from,
product_id
from Y
;

IntervalMatch:
IntervalMatch(time, machine)
load distinct
time_from,
time_to,
machine
Resident Order
;

and the output data looks like that:

clipboard_image_0.png

clipboard_image_1.png

It looks like this IntervalMatch is omitting the time key and is using only machine key.

1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try inner join before intervalmatch statement.

View solution in original post

2 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try inner join before intervalmatch statement.