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

Join or Keep ON date columns

Is it possible to do a Left Join or a Left Keep ON a table1.datecolumn > table2.datecolumn?

I have users who joined a pilot program, and I only need to load sales that they've made after the pilot program started. I have the user's ID for the join/keep and would also like to join based on the sale_date >= pilot_start_date (different for each user).

I can create an indicator, but then the user would need to filter based on that indicator column every time, which I don't want to have.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

if you don't have a lot of rows you can join the tables with userid and add the 2 fields

table1.datecolumn, table2.datecolumn

then with a resident load filter the rows where table1.datecolumn > table2.datecolumn

View solution in original post

2 Replies
maxgro
MVP
MVP

if you don't have a lot of rows you can join the tables with userid and add the 2 fields

table1.datecolumn, table2.datecolumn

then with a resident load filter the rows where table1.datecolumn > table2.datecolumn

Not applicable
Author

Great, that works. Thanks!