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: 
deepakqlikview_123
Specialist
Specialist

Formaulae

Hi all,

Can u please suggest what below expression will return,

1if(isnull(SalesValue),'NULL',SalesValue)as SalesValue;

2NullAsValue Field1,Field2;

thanks

1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi,

1.  if(isnull(SalesValue),'NULL',SalesValue)as SalesValue;

Isnull function will check whether the salesValue field has null or not.

If salesValue field has any null value, then it will return first condition 'NULL' , else it will take salesValue field values.

2. NullAsValue Field1,Field2;

   set NullValue='NULL';

By default Qlikview Considers Null values to be missing or undefined entities.

if field1 and field2 does not have any values, at the time it will consider that value as 'NULL'.

Ex:

SET NullInterpret ='';

NullAsValue Sales;

Set NullValue = 'NULL';

Tab:

LOAD * INLINE [

    Country, Sales

    AAA, 100

    BBB, 98

    CCCC,

    DDD, 0

    EEE

    FFF, 0

];

SET NullInterpret ='';

It will return null values for blank values in excel.

Here i have attached sample for your 2nd Question. Pls check this.

Hope it may help.

View solution in original post

2 Replies
Anonymous
Not applicable

Hi,

1.  if(isnull(SalesValue),'NULL',SalesValue)as SalesValue;

Isnull function will check whether the salesValue field has null or not.

If salesValue field has any null value, then it will return first condition 'NULL' , else it will take salesValue field values.

2. NullAsValue Field1,Field2;

   set NullValue='NULL';

By default Qlikview Considers Null values to be missing or undefined entities.

if field1 and field2 does not have any values, at the time it will consider that value as 'NULL'.

Ex:

SET NullInterpret ='';

NullAsValue Sales;

Set NullValue = 'NULL';

Tab:

LOAD * INLINE [

    Country, Sales

    AAA, 100

    BBB, 98

    CCCC,

    DDD, 0

    EEE

    FFF, 0

];

SET NullInterpret ='';

It will return null values for blank values in excel.

Here i have attached sample for your 2nd Question. Pls check this.

Hope it may help.

deepakqlikview_123
Specialist
Specialist
Author

Thanks Nisha,

This info in helpful for me