Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
beck_bakytbek
Master
Master

exclude id

Hi Folks,

i have such issue:

tab1:

Load * inline [

ID, Value

1,    10

2, 15

];

tab2:

Load * inline  [

ID, Value

2, 5

]

Where not Exists(ID);

my question is:

i want exclude only ID =2 , my expected output is: table with only:  ID =1, Value = 10,

i can solve this by creating of where ID <> '2', but i want to know, whether is another method to exclude values and how can i exlude these value dynamic.

thanks a lot

beck

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

My bad, try this.... this should work

tab2:

Load * inline [

ID, Value

2, 5

];

tab1:

NoConcatenate

Load * inline  [

ID, Value

1, 10

2, 15

]

Where not Exists(ID);

DROP Table tab2;

View solution in original post

6 Replies
sunny_talwar
MVP
MVP

Then you need to do this

tab2:

Load * inline  [

ID, Value

2, 5

];

tab1:

Load * inline [

ID, Value

1,    10

2, 15

]

Where not Exists(ID);

beck_bakytbek
Master
Master
Author

Hi Sunny, Thanks a lot for your feedback

look at this, i tried but i dont have an expected result

sunny_talwar
MVP
MVP

I think you need to drop the table tab2 after this

tab2:

Load * inline [

ID, Value

2, 5

];

tab1:

Load * inline  [

ID, Value

1, 10

2, 15

]

Where not Exists(ID);

DROP Table tab2;

beck_bakytbek
Master
Master
Author

i tried, bit it does not work

sunny_talwar
MVP
MVP

My bad, try this.... this should work

tab2:

Load * inline [

ID, Value

2, 5

];

tab1:

NoConcatenate

Load * inline  [

ID, Value

1, 10

2, 15

]

Where not Exists(ID);

DROP Table tab2;

beck_bakytbek
Master
Master
Author

Thanks a lot Sunny for your help and sharing of your experience

i appreciate it

Thanks a lot  and have a nice day