Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dijkstram
Partner - Contributor II
Partner - Contributor II

How to join Resident tables by where clause

HI,

I'm not yet that familiar with Qlikview, I have searched the forum but didnot found the solution.

I want to load two Resident tables into one table dependent on a Where Clause. The Date of the first table is between the START DATE and END DATE of the second resident table. How to fix it. The Date column of the first table is not recognized. in the Where clause.

TabA:

LOAD

Key, Date

Resident A;

Inner Join(TabA)

LOAD

Key, STARTDATE, ENDDATE

Resident B

WHERE Date between STARTDATE AND ENDDATE;

Hope to hear soon from the experts.

Kind regards

5 Replies
prieper
Master II
Master II

Have a look into the INTERVALMATCH()-function

HTH
Peter

dijkstram
Partner - Contributor II
Partner - Contributor II
Author

How to deal with the intervalmatch, from table A and the second table I have to load different columns, do you have an example

prieper
Master II
Master II

Please find a sample in the attachment

HTH

Not applicable

Hi,

When you joined tables "A" and "B", will be create a new table.

You need put your filter in the new table.

Ex.:

TableA:

...

TableB:

Inner Join (TableA)

....

NOCONCATENATE

(this is a new table whith data values from TableA and TableB)

TableA:

Load...

From...

Where Date >= STARTDATE

and Date <= ENDDATE;

dijkstram
Partner - Contributor II
Partner - Contributor II
Author

Thanks a lot, it was helpful