Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to check field values are present in the field or not.

Hi,

I am trying to check filed value is present in that field or not.

Ex:

Field:Item and it values are 1 to 10.

If i pass the values from 1 to 10,it has to select that value else deselect the value.

Can any one help on this .

Thankyou

Anil.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You can use EXISTS() to check for existence of fied values:

LOAD item as ItemQVD

FROM item.qvd (qvd);

LOAD if(exists(ItemQVD, item), 'Exists in QVD', 'Does not exist in QVD') as Check,

          item

FROM Excel.xls;

View solution in original post

4 Replies
swuehl
MVP
MVP

Sorry, I don't understand.

How do you 'pass the value'? When you are trying to select a non existing value in a list box (by search), doesn't it work like requested?

Not applicable
Author

initially i will load field values from qvd (from 1 to 10)

EX:load item from item.qvd.

NOConcatenate load item from excel.(for values like 1,11,2,3)

now i want to cross check this item values with values that are loaded from qvd.

Is it possible to do so.

swuehl
MVP
MVP

You can use EXISTS() to check for existence of fied values:

LOAD item as ItemQVD

FROM item.qvd (qvd);

LOAD if(exists(ItemQVD, item), 'Exists in QVD', 'Does not exist in QVD') as Check,

          item

FROM Excel.xls;

maxgro
MVP
MVP

qvd:

LOAD item FROM item.qvd (qvd);

excel:

noconcatenate LOAD item FROM Excel.xls;

Left join (excel) load item, 1 as Check Resident qvd;