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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using the IntervalMatch Function

How to Get the Actual_Rate between using the From_Balance and To_Balance.

2 Replies
chematos
Specialist II
Specialist II

something like that:

Table:

load * inline[

Id, From_Balance , To_Balance

1, -0.1, 4999999

2, 50000000, 999999999

....

]

inner join intervalmatch(Balance)

load From_Balance , To_Balance

from table;

Not applicable
Author

I got through this script..,

Rate_Slab:

LOAD 

     FROM_BALANCE,

     TO_BALANCE,

     INT_TYPE,

     CCY,

     ACTUAL_RATE

FROM

C:\Users\Administrator\Downloads\Rate_Matrix2.xls

(biff, embedded labels, table is [Rate Slab$]);

Client_Data:

LOAD ClientNo,

     INT_TYPE,

     CCY,

     Balance,

     F5

FROM

C:\Users\Administrator\Downloads\Rate_Matrix2.xls

(biff, embedded labels, table is [Client Data$]);

Left Join(Rate_Slab)

IntervalMatch(Balance) Load FROM_BALANCE+1,

     TO_BALANCE

     Resident Rate_Slab

     Where CCY='PKR' and (INT_TYPE='ISI' or INT_TYPE='PLS');