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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to skip the row in a table, when field is null?

Hi QV Team,

I've a Serial # field in a table, I need to skip the entire row when the Serial # record is Missing/Null.

Help me out !!

Labels (1)
1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

In Table box it is not available it is in charts only you can remove it in the load script then and read that columns

You can create the filters in load script or completely remove it as Anbu suggest from loadscript

lOAD iF(len(ColA) > 0,'Null','NotNull')  AS NullFlagA,

         iF(len(ColB) > 0,'Null','NotNull')  AS NullFlagB,

         ColA,ColB;

LOAD * Inline  [

ColA,ColB

A,5443

B,56

,45

D,54

E,

F,54  ];

Regards

Anand

View solution in original post

8 Replies
anbu1984
Master III
Master III

In Script

Load * From Table where Len(Trim([Serial #])) > 0;

its_anandrjs
Champion III
Champion III

Hi,

If you want to remove it from the chart you can use

Suppress When Value Is Null option

And you can read more on the NULL Handelling

NULL handling in QlikView

Regards

Anand

Not applicable
Author

Hi Anand,

Where is this option " Suppress when Value is NULL" on Table box object ?

its_anandrjs
Champion III
Champion III

In Table box it is not available it is in charts only you can remove it in the load script then and read that columns

You can create the filters in load script or completely remove it as Anbu suggest from loadscript

lOAD iF(len(ColA) > 0,'Null','NotNull')  AS NullFlagA,

         iF(len(ColB) > 0,'Null','NotNull')  AS NullFlagB,

         ColA,ColB;

LOAD * Inline  [

ColA,ColB

A,5443

B,56

,45

D,54

E,

F,54  ];

Regards

Anand

amit_saini
Master III
Master III

Try something like below:

=if (not isnull(Plant),Plant )

Thanks,
AS

its_anandrjs
Champion III
Champion III

Hi,

In place of the Table box you can use the straight table also by adding all the dimension and in expression write 1. And use option Suppress When Value Is Null from chart Properties >> Dimensions >> Select Null dimension >> Tick mark Suppress When value is null OR From Presentation >> Suppress Zero-Values tick mark all this if you do not want to do change in the load script.

Regards

Anand

amit_saini
Master III
Master III

Try this also:

=if(Len(Trim(Your_Feild))>0 , Your_Field)

Thanks,

AS

its_anandrjs
Champion III
Champion III

Or you can use the single filter also

iF(len(Trim(ColA)) > 0 and len(Trim(ColB)) > 0,'Null','NotNull')  AS NullFlagA,

Regards

Anand