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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sai_Mohan
Contributor III
Contributor III

NullAsValue in Qliksense

Hi Team,

In a table, I have a column named as'Title'. In that Field, I have many values like ('Manager', 'engineer', 'support', 'others',       '-', 'Technical', 'Security', '-', 'Lead'). My work here is I have to show 'Others ' and ' - ' as 'NO TITLE' and remaining names should be displayed.

For example:

Title 
Engineer
lead
-
Others
Manager
Support
-

In this Title field, I have to show it like:

Title 
Engineer
lead
No Title
Manager
Support
No Title

 

Note: I am getting this values from SQL. In Qlik Report, It is not showing '-' value, unless I export it to excel. So, I used NullASValue In Load editor. It is not giving any error but its not working.

Please give some solution which i can write in my expression

I tried expression like this :(Nothing worked)

1. if(Title = 'Others', '-', 'No Title', Title)

2. if(IsNull(Title) OR Title = 'Others', 'No Title', Title)

3. If(Title ='Others' OR Title = '-' ,No Title', Title)

Thanks 

Sai 

4 Replies
Gui_Approbato
Partner - Creator III
Partner - Creator III

HI Sai,

Did you try creating a column in the script?

I would do:            if( IsNull(Title), 'NO TITLE', if( Title='Others', 'NO TITLE', Title)) as Title2;

Sai_Mohan
Contributor III
Contributor III
Author

Thanks for replying @Gui_Approbato 

But its not working. '-' is not showing up under 'No Title'.

Any solutions? 

If I uncheck "Include null values ", then those values are gone, but I need that values under 'No Title'

 

Thanks In Advance 

Gui_Approbato
Partner - Creator III
Partner - Creator III

What if in the load editor you change the column to:

 

 if( Len( Trim(Title))=0 , 'NO TITLE',     if( Title='Others', 'NO TITLE', Title)   ) as Title;

Sai_Mohan
Contributor III
Contributor III
Author

Hi @Gui_Approbato ,

Still I am not getting that😅

 

Thanks for the help! I really appreciate your work!