Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
chinnu123
Creator
Creator

Removing Null values in the script?

Hi Community,

    

       In my data there are nulls I need to remove that null data in the script it self. i don't want to load that nulls data in to qlik.

  can any one suggest it how to achieve it?

Thanks in Advance

Regards,

Chinnu.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

If you want to remove these records where ISSUES is NULL, then just use the WHERE clause:

LOAD ISSUES,

          AnotherField

FROM ...

WHERE LEN(TRIM(ISSUES));

View solution in original post

7 Replies
swuehl
MVP
MVP

LOAD Data

FROM ...

WHERE LEN(TRIM(Data));

or

LOAD

     IF(LEN(TRIM(Data)), Data, 'No data') AS Data

FROM ...;

Not applicable

Chinnu,

Using Qlikview null functions we can handle this.

we can write a case logic like

if (isnull(fieldname)=-1,'No Data',fieldname) as fieldname.

But if instead of null if your data have space or anything besides null showing as null, use TRIM function as Swuehl mentioned above.

Thanks

Brad.

chinnu123
Creator
Creator
Author

Hi swuehl,

Thanks for your quick reply,

I want to delete that null values data permanently instead of changing as some other name.

for example i have a field name ISSUES in this field i have some null values  '-' i want to remove that data permanently.

Regards,

Chinnu.

swuehl
MVP
MVP

If you want to remove these records where ISSUES is NULL, then just use the WHERE clause:

LOAD ISSUES,

          AnotherField

FROM ...

WHERE LEN(TRIM(ISSUES));

Anonymous
Not applicable

Hi,

Load

Data..

from

where Field is not null;

Regards

MarcoWedel

Hi,

for "real" null values you could use:

...

Where not IsNull(YourField);

but that would not work for e.g. blanks or empty strings.

hope this helps

regards

Marco

chinnu123
Creator
Creator
Author

Thanks Swuehl,

Its working...