Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Talk to Experts, a LIVE Q&A Webinar. Bring your Qlik Sense Business questions on Aug. 4th. Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator
Creator

How to replace null() by value - Qliksense

Hi ,

I create a table in qliksense,

I want to replace the value null to 'N/A' in each field.

I used in the following expression , but it doesn't replace to the value , and stay null:

=if(IsNUll(NAME), 'NA', NAME)

Could you please advice?

Thank's!

1 Solution

Accepted Solutions
Highlighted
Creator
Creator

Re: How to replace null() by value - Qliksense

Hi,

Thank you for you help , the following expression works:

aggr(if(isnull(NAME),'Other',NAME),NAME)

View solution in original post

18 Replies
Highlighted

Re: How to replace null() by value - Qliksense

Try

=if(IsNUll(NAME) = -1, 'NA', NAME)

Highlighted
Creator
Creator

Re: How to replace null() by value - Qliksense

Thank you for your response... also this option doesnt work

Highlighted
Specialist III
Specialist III

Re: How to replace null() by value - Qliksense

Let's try something different:

What about Alt function?

Alt(NAME,'N/A') - this will replace every missing data with "N/A".

Thiago Justen Teixeira Gonçalves
WhatsApp: 24 98152-1675
Skype: justen.thiago
Highlighted
Creator II
Creator II

Re: How to replace null() by value - Qliksense

Are you sure that field is null? Maybe it is empty?

Try if(NAME='', 'N/A', NAME)

Highlighted
Creator
Creator

Re: How to replace null() by value - Qliksense

Thank you for your response,

I try as you suggest -  it's replace everything to N/A except the null value

Highlighted
Creator
Creator

Re: How to replace null() by value - Qliksense

Thank you for your response,

I try it but it didn't work ...

if i write = if(NAME='', 'N/A') , only the null value stay but in the display it didn't show the 'N/A' value....


Highlighted
Specialist III
Specialist III

Re: How to replace null() by value - Qliksense

Sorry, just a one mistake - this function check for a valid number representation.


So, do this:


Alt(num#(NAME),'N/A')

Thiago Justen Teixeira Gonçalves
WhatsApp: 24 98152-1675
Skype: justen.thiago
Highlighted
Partner
Partner

Re: How to replace null() by value - Qliksense

try

if(len(trim(YouField))=0,'N/A',YouField)  as urField

Highlighted
Creator
Creator

Re: How to replace null() by value - Qliksense

Thank you for your response -

the len of null return null , so it doesn't work