Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

IntervalMatch -- falling interval between two values

Hello,

I 'm dealing with the need of a field that indicates the interval that match for each event row. For that, I have both table EVENTS and INTERVALS but I don't know how to use the intervalmatch() function (For now I made this calculation with nested IF). Could you help me pls?

Qlik Sense Browser 25092014 104736 a.m..bmp.jpg

Thanx!!

1 Solution

Accepted Solutions
demoustier
Creator
Creator

6 Replies
Agis-Kalogiannis
Employee
Employee

You could use something like:

intervalmatch(VALUE)

Load

MIN_VALUE, MAX_VALUE

Resident Interval_Table;

And join this table to the Intervalmatch table so as to eliminate the synthetic keys.

Not applicable
Author

Hello,

Following statement should give you desired result based on your data (Interval Match creates a synthetic key)

IntervalMatch(Value)Load MIN_VALUE,MAX_VALUE Resident Interval;

Thanks

Amit Prabhudesai

demoustier
Creator
Creator

Something like this ?

IntervallMatch is definitively the good option. Difficulties are coming from tables jointure.

test2 is result without synthetic key

Not applicable
Author

Thanx, but what if I want not only these two fields "MinValue" and "MaxValue" but the other fields from the events table? How can I merge it ?

demoustier
Creator
Creator

like this ?

Not applicable
Author

It's perfect Demoustier! Thanx very much!!