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

Left Join Issue

I am wanting to left join a resident table with a where clause that refers to a field in the table I am joining to (as per below). Qlikview doesn't recognise 'VacateDate_2', which is a field in table Lease_2. How do I get it to recognise the field and complete the join????

Left Join (Lease_2)

Load InspectionNoteType,

     PropCode,

     AreaCode,

     LinkKey,

     InspectionDate,

     MajorWork_Void

Resident ExitInspection

where InspectionDate > VacateDate_2;

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

This is not possible in one pass. But you can easily do it in two passes:

Left Join (Lease_2)

Load InspectionNoteType,

     PropCode,

     AreaCode,

     LinkKey,

     InspectionDate,

     MajorWork_Void

Resident ExitInspection;

Lease_2B:

Noconcatenate

Load *

Resident Lease_2

where InspectionDate > VacateDate_2;

Drop Table Lease_2;

View solution in original post

2 Replies
hic
Former Employee
Former Employee

This is not possible in one pass. But you can easily do it in two passes:

Left Join (Lease_2)

Load InspectionNoteType,

     PropCode,

     AreaCode,

     LinkKey,

     InspectionDate,

     MajorWork_Void

Resident ExitInspection;

Lease_2B:

Noconcatenate

Load *

Resident Lease_2

where InspectionDate > VacateDate_2;

Drop Table Lease_2;

Not applicable
Author

Thank you Henric, it has worked perfectly. Your help has been much appreciated.