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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

"Where not equal" not working in script load

I'm creating a table (let's say table "temp") and then concatenating on to temp using data from another source in my script load. In the concatenate() load, I use a where clause to tell QV not to pick up any rows where there is a "Total" string of any sort in column 1 (using where <> '*Total*'). My script looks like below:

Temp:

Load

     some data...

     ...

From source1;

Concatenate(Temp)

Load

     Additional data...

     ...

From source2

WHERE Field1 <> '*Total*';

For some reason, the script is ALWAYS loading the "Total" rows. If I change it to  WHERE Field1 = '*Total*' the NONE of the line items from source2 will load. Any ideas why this is the case?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try

From source2

WHERE not Field1 like '*Total*';

View solution in original post

3 Replies
swuehl
MVP
MVP

Try

From source2

WHERE not Field1 like '*Total*';

maxgro
MVP
MVP

try with

WHERE not wildmatch(Field1, '*Total*')

Not applicable
Author

Wow... so simple. I knew this was elementary. Thanks for the help!