Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

intervalmatch() ? use ?

Hi

I am new to qlikview .i am not understanding intervalmatch function ?

what is intervalmatch() function ?

USE  of intervalmatch?

At what situation intervalmatch function is use?

Please help me

2 Replies
Not applicable
Author

The IntervalMatch prefix is used to create a table matching discrete numeric values to one or more numeric intervals.

lets assume there is table

Student:

StName
Marks
AB25
BA40
CA55
DA60
EA75

and we have a table for grades

Status:

Min
MaxGrade
029Fail
3045Third
4659Second
6074First
75100Honors

now we can find Student grades by using IntervalMatch() by following script

intervalmatch(Marks) load Min,Max resident Status;

now Student's Grade is obtained by matching the Marks in the interval of minimum and Maximum value.

so when we create a table box for the grade of the student following table is obtained.

StName
Grades
ABFail
BAThird
CASecond
DAFirst
EAHonors

because 25 comes between the interval of 0-29 for that grades is fail.This is logic on which intervalmatch() works.