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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
anuradhaa
Partner - Creator II
Partner - Creator II

Interval Match Problems

I have two tables and want to use interval match to map records,

Table 1 : (Base table)

Name     Start     End

aaa     2015/03/14     2015/05/25

aaa     2016/01/12     2016/05/20

ABC     2016/02/12     2016/04/30

Table2

Name          Date

aaa               2016/02/14

aaa               2016/03/12

aaa                2015/04/14

I want to put largest date of each cycle (Start -> End) is date falls in date range Start - > End

Final Table

Name     Start     End      Date

aaa     2015/03/14     2015/05/25     2015/04/14

aaa     2016/01/12     2016/05/20     2016/03/12

ABC     2016/02/12     2016/04/30     -

Labels (1)
11 Replies
anuradhaa
Partner - Creator II
Partner - Creator II
Author

Table:

LOAD * Inline [

Name, Start, End ,country , flag

aaa, 2015/03/14, 2015/05/25 , US , Y

aaa, 2016/01/12, 2016/05/20 ,UK , N

ABC, 2016/02/12, 2016/04/30 , US , N

];

Final Table

Name     Start     End      Date country flag

aaa     2015/03/14     2015/05/25     2015/04/14 US Y

aaa     2016/01/12     2016/05/20     2016/03/12 UK N

ABC     2016/02/12     2016/04/30     - US N

sunny_talwar
MVP
MVP

Check out attached, you don't have to add all the names and it should still work for you