Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikview979
Specialist
Specialist

exist function

What is exist function ,how to use exist function ?

1 Solution

Accepted Solutions
sunny_talwar

Here is an example for you to look at:

Table1:

LOAD * INLINE [

    Number

    1

    2

    3

    5

    7

];

Table2:

LOAD * INLINE [

    Number2

    3

    6

    8

    1

    2

    3

    6

    5

    6

    8

    4

    7

    1

    2

    3

    4

    5

    6

    7

    8

    9

];

Table:

LOAD RowNo() as Key,

  Number2

Resident Table2

Where Exists(Number, Number2);

DROP Tables Table1, Table2;


Output in Table Box object looks like this:

Exists Function.PNG

I hope this would be helpful.

Best,

Sunny

View solution in original post

3 Replies
petter
Partner - Champion III
Partner - Champion III

Exist() is used in a Load Script to check if some value already exists in a given field. It returns true if you have a match and false if you don't.

sunny_talwar

Please find a snippet from the help section of QlikView if you have not already seen this.

Best,

SunnyExists Function.PNG

sunny_talwar

Here is an example for you to look at:

Table1:

LOAD * INLINE [

    Number

    1

    2

    3

    5

    7

];

Table2:

LOAD * INLINE [

    Number2

    3

    6

    8

    1

    2

    3

    6

    5

    6

    8

    4

    7

    1

    2

    3

    4

    5

    6

    7

    8

    9

];

Table:

LOAD RowNo() as Key,

  Number2

Resident Table2

Where Exists(Number, Number2);

DROP Tables Table1, Table2;


Output in Table Box object looks like this:

Exists Function.PNG

I hope this would be helpful.

Best,

Sunny