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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
olgaavalos
Partner - Contributor III
Partner - Contributor III

IntervalMatch

Hi,

I am working with IntervalMatch but the registers of the table does not load.

The intervals are:

olgaavalos_0-1670875361940.png

The value is:

olgaavalos_1-1670875409518.png

SCRIPT

Transacciones:
LOAD
amount1

FROM [lib://CuanticaSoft:DataFiles/Transacciones.qvd]
(qvd);

Rangos:
LOAD
Rango_Inf,
Rango_Sup,
Id_Rangos
FROM [lib://CuanticaSoft:DataFiles/Rangos.qvd]
(qvd)
Where not Id_Rangos like 1 and not Id_Rangos like 53
;

Inner Join IntervalMatch(amount1)
Load Rango_Inf,
Rango_Sup
Resident Rangos;

Labels (3)
1 Solution

Accepted Solutions
barnabyd
Partner - Creator III
Partner - Creator III

G'day @olgaavalos,

I think everything looks good except that you need to put the smaller value first in the IntervalMatch statemtent:

Inner Join IntervalMatch(amount1)
    Load Rango_Sup,
         Rango_Inf
Resident Rangos;

I also noticed that your 'where' could have been written more efficiently like this:

Where Id_Rangos > 1 and Id_Rangos < 53;

or this:

Where match( Id_Rangos, 1, 53 ) = 0;

I hope this helps.

Cheers, Barnaby.

Barnaby Dunn
BI Consultant

View solution in original post

1 Reply
barnabyd
Partner - Creator III
Partner - Creator III

G'day @olgaavalos,

I think everything looks good except that you need to put the smaller value first in the IntervalMatch statemtent:

Inner Join IntervalMatch(amount1)
    Load Rango_Sup,
         Rango_Inf
Resident Rangos;

I also noticed that your 'where' could have been written more efficiently like this:

Where Id_Rangos > 1 and Id_Rangos < 53;

or this:

Where match( Id_Rangos, 1, 53 ) = 0;

I hope this helps.

Cheers, Barnaby.

Barnaby Dunn
BI Consultant