Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikview979
Specialist
Specialist

Interval Match

Hi Experts,

Please find the Attached files.

How Can i use interval match in this  two tables.

 

MaxmarksMinmarksName
9080Raj
8070Raja
7060Varun
6050Venkat
5040Arun

 

MarksGrade
85A
75B
65C
55D
45E
1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Marks:

Load * Inline

[

  Maxmarks, Minmarks, Name

  90, 81, Raj

  80, 71, Raja

  70, 61, Varun

  60, 51, Venkat

  50, 40, Arun

];

Grade:

Load * Inline

[

Marks, Grade

85, A

75, B

65, C

55, D

45, E

];

Left Join

IntervalMatch(Marks)

Load Minmarks, Maxmarks Resident Marks;

Left Join (Marks) Load * Resident Grade;

Drop Table Grade;

View solution in original post

6 Replies
ajsjoshua
Specialist
Specialist

Hi,

PFA

ajsjoshua
Specialist
Specialist

Hi,

table:

LOAD Name,

     marks

FROM

E:\Joshua\sample\intervalmatch.xlsx

(ooxml, embedded labels, table is Sheet1);

table2:

LOAD Grade,

     maxmarks,

     minmarks

FROM

E:\Joshua\sample\int1.xlsx

(ooxml, embedded labels, table is Sheet1);

bridge:

IntervalMatch(marks)

LOAD maxmarks,minmarks

Resident table2;

MK_QSL
MVP
MVP

Marks:

Load * Inline

[

  Maxmarks, Minmarks, Name

  90, 81, Raj

  80, 71, Raja

  70, 61, Varun

  60, 51, Venkat

  50, 40, Arun

];

Grade:

Load * Inline

[

Marks, Grade

85, A

75, B

65, C

55, D

45, E

];

Left Join

IntervalMatch(Marks)

Load Minmarks, Maxmarks Resident Marks;

Left Join (Marks) Load * Resident Grade;

Drop Table Grade;

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Intervals:

LOAD Maxmarks,

     Minmarks,

     Name

FROM

(ooxml, embedded labels, table is Sheet1);

Data:

LOAD Marks,

     Grade

FROM

(ooxml, embedded labels, table is Sheet2);

IntervalMatch (Marks) LOAD Minmarks, Maxmarks Resident Intervals;

This might work.

kkkumar82
Specialist III
Specialist III

qlikview979
Specialist
Specialist
Author

Hi All,

Thanks for your Support.

Regards,

Mahesh.