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: 
Not applicable

how to display the frequence of the null values

hello All,

I have to display  in the graphe the frequence of the  NULL values for a field .But QlikView not allow this.

the Idea is when i load the field , i will transforme the NULL value into an other value like '<NULL>'


exemple : the field is "status"

in the instruction load i will do :


If ( IsNull(status), '<NULL>', status) .  But it's not working. I know that i am not far of the solution

Can someone help me ?

Thanks in advances .

Regards,

Ferhat

1 Solution

Accepted Solutions
MarcoWedel

one example:

QlikCommunity_Thread_168609_Pic1.JPG

QlikCommunity_Thread_168609_Pic2.JPG

SET NullValue = '<NULL>';

NULLASVALUE status;

table1:

LOAD RecNo() as ID,

    If(Rand()>0.3,Ceil(Rand()*10)) as status

AutoGenerate 30;

hope this helps

regards

Marco

View solution in original post

4 Replies
sinanozdemir
Specialist III
Specialist III

You can try to implement the below function in order to count NULL values:

Count/Sum({1-<Dimension = {"*"}>} Value)

Another approach will be using SET in the load script

SET NullValue ='Unknown/Null';

NULLASVALUE *;

In this way, you are identifying NULL values as Unknown/Null.

Hope this helps

Anonymous
Not applicable
Author

try to use len

if (len(status)=0,'<NULL>',Status)

MarcoWedel

one example:

QlikCommunity_Thread_168609_Pic1.JPG

QlikCommunity_Thread_168609_Pic2.JPG

SET NullValue = '<NULL>';

NULLASVALUE status;

table1:

LOAD RecNo() as ID,

    If(Rand()>0.3,Ceil(Rand()*10)) as status

AutoGenerate 30;

hope this helps

regards

Marco

Not applicable
Author

yes it's correct , thanks