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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

help in script

hi

my requirement is not to load the data(particular row) if a particular field for that row is blank or having blank spaces in it

thanks in advance

1 Solution

Accepted Solutions
Not applicable
Author

You can simply write:

Load * from tablename where len(fieldname)<>0;

View solution in original post

3 Replies
Not applicable
Author

You can simply write:

Load * from tablename where len(fieldname)<>0;

Not applicable
Author

Hi,

The script could look like this:

Load field1,

field2,

field3

from ...

where not isnull(field3) and len(trim(field3)) > 0

;

rubenmarin

Hi Nishit, you can use the Index() function to look for a character in a string:

Index(FieldName, ' ') // returns the position where it finds the first blank space; returns 0 if there is none

So you can add the where sentece:

Where Index(FieldName, ' ')=0