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: 
Anonymous
Not applicable

Using interval match function

Hi all,

I have got contracts with a start- and enddate.

Now I would like to use the interval match function in the script, but I don't know exactly how to do that.

I have got a table CONTRACTS, with all the relevant data. And I have a table CALENDAR which I use to check if a contract is valid or invalid.

Anyone who can help on this one?

At this moment I use a the following expression to get this done:

if(Startdate <= Date and Enddate >= Date, 'Valid')

The problem with this thing is that the performance is realy bad.

I hope someone can help me.

Cheers,
Henco

1 Reply
Not applicable
Author


I hope the below code works (not tested)

Load personname,startdate,enddate from Contracts;
load date from Calender;
Intervalmatch (date) select startdate,enddate from contracts;


Now create one table box and add.

Personname,startdate,enddate,date and see the results.

hope this helps
Talha