Discussion Board for collaboration on QlikView Scripting.
I am trying to understand how to use Interval Match function.
For example I have a Student Grades table with StudentID, CourseID, Grade.
I would like to compare the Grade value against Grade Range.
Grade Range is in the GradeRange table with CourseID, GradeStart, GradeStop, Range as fields.
In order to do Interval Match is it true that I must have those two tables created first to do the analysis?
So my intervalmatch table would be:
Load GradeStart, GradeStop Resident GradeRange;
Can the Load table after IntervalMatch have more than two fields?
did you read this useful post?
yes, it can
search in QlikView Help interval match and choose IntervalMarch (extended)
John, if your range will change from CourseID you need to use Extended syntax like below:
LOAD CourseID , StudentID , Grade From s1;
Load CourseID, GradeStart, GradeStop, Range From s2;
LOAD GradeStart, GradeStop , CourseID Resident GradeRange;
Hi dathu and Massimo,
What is the purpose for the Extended version of Interval Match? I tried reading the Help but could not imagine a relating example.
Have you got an example where extended is needed? Thanks
If you need to add Key field to you range, you need to use Extended syntax.
in above exapmle, the grade range will change from CourseID, you need to map your CourseID, Grade with CourseID, GrateStart , GreadeEnd. so you need to use Extended syntax.
extended because there is
- the field and the range to check (OrderDate, DateFrom, DateUntil) as in the non extended interval match
- another field to use for joining the 2 tables (Val)
LOAD * INLINE [
Orderline, OrderDate, Val , amount
Val , DateFrom , DateUntil,Rate
INNER JOIN INTERVALMATCH (OrderDate, Val)
Hi Please check this as well.
Interval Match Feature/Function