Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
pgalvezt
Specialist
Specialist

How exclude null

Hello,

How can exclude null values from calculated field?

Right(If( Left(Field,1) = 'M', Field),1) as Result

This Form Has null Values and I want to remove them.

Thanks!!

1 Solution

Accepted Solutions
maxgro
MVP
MVP

load

     .....,

     Right(If( Left(Field,1) = 'M', Field),1) as Result,

     .....

from

     .....

Where Left(Field,1) = 'M';

View solution in original post

5 Replies
trdandamudi
Master II
Master II

check "Suppress when Value is null" under the dimension tab..

sunny_talwar

So you want to remove Null from your new Column Result? Or are you looking to assign another value to Field when it is Null?

swuehl
MVP
MVP

Maybe something like

LOAD *

WHERE LEN(TRIM(Result));

LOAD

     Right(If( Left(Field,1) = 'M', Field),1) as Result

FROM YourTableSource;


or


LOAD *

WHERE NOT ISNULL(Result);

LOAD

     Right(If( Left(Field,1) = 'M', Field),1) as Result

FROM YourTableSource;

maxgro
MVP
MVP

load

     .....,

     Right(If( Left(Field,1) = 'M', Field),1) as Result,

     .....

from

     .....

Where Left(Field,1) = 'M';

MarcoWedel

Hi,

just one remark:

some other way to test the initial letter being 'M' besides

Left(Field,1) = 'M'

could be:

Field like 'M*'

hope this helps

regards

Marco