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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Handel nulls in qlikview

Hello,

I'm facing an issue with nulls in the report.

For example: when we hit a query to database, no records are fetched. So for the same query(expression) in in straight table we are able to see '0's for all dimensions with no records. Our requirement is to show, where their is no records we need to display as null in the straight table.

Could any one can suggest solution to handle nulls in the above scenario.

Thanks in advance.

6 Replies
sunilkumarqv
Specialist II
Specialist II

Try this

SET NullValue='<NULL>';

SET NullDisplay='Null';

sasiparupudi1
Master III
Master III

You could use an if condition may be?

=if(YourField=0,Null(),YourField)

tresesco
MVP
MVP

Go through this : NULL handling in QlikView , hopefully would solve many such issues you might fetch in future developments as well.

qv_testing
Specialist II
Specialist II

Try this

NullAsValue FieldName;

Set NullValue='NULL';

or

If(FieldName=0, 'Null', FieldName)

Not applicable
Author

I tried above 2 options, but not able to get solution.

If the record has not entered in db, for those we need to show as null instead of 0. Qlikview by default it is displaying as 0.

qlikviewwizard
Master II
Master II

Hi

Use like this:

=if(Field=0,Null(),Field)