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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to remove null values of a table in qlikview ?

Hi,

   Anyone please tell me.

Thanks&Regards

Devi

6 Replies
MayilVahanan

Hi

For a particular column, try like this

If(Len(trim(FieldName)) , FieldName, 0) as FieldName.

Or

You need to remove all rows from the table. Try like this

Load * from table where len(trim(fieldname)) > 0;

based  on fieldname, it removes the null value.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
MK_QSL
MVP
MVP

You can do this in script level

1) If you want to replace Null with something like 'Unknown'

IF(IsNull(FieldName) or IF(Len(Trim(Replace(FieldName,'-',''))) = 0 , 'Unknown', FieldName) as FieldName

2) If you want to remove all lines where FieldName is having NULL values

Load * From TableName

Where not IsNull(FieldName) or Len(Trim(Replace(FieldName,'-','')) > 0 

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

If you want to filter for 1 column

LOAD

*

FROM DataSource

WHERE Len(Trim(Column1)) > 0;

If you want to filter for more than 1 column

LOAD

*

FROM DataSource

WHERE Len(Trim(Column1)) > 0 AND Len(Trim(Column2)) > 0 ....................Len(Trim(ColumnN)) > 0;

Hope this helps you.

Regards,

Jagan.

Anonymous
Not applicable
Author

Hi Devi,

By using isnull () function you can remove null from the table. And in place of null you can put 0.

Thanks

MK_QSL
MVP
MVP

Devi,

Below each answer given, you can find below buttons... Tick appropriate one...You can select Only one Correct and Two Helpful answers..

Capture.PNG.png

Not applicable
Author

Devi it doesn't take a second to answer which is correct. people like me are waiting for the correct post