Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
RutiTaumanRubin
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
RutiTaumanRubin
Creator
Creator
Author

Hi,

Thank you for you help , the following expression works:

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

View solution in original post

18 Replies
its_anandrjs

Try

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

RutiTaumanRubin
Creator
Creator
Author

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

Thiago_Justen_

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
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
daniel_kusiak
Creator II
Creator II

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

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

RutiTaumanRubin
Creator
Creator
Author

Thank you for your response,

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

RutiTaumanRubin
Creator
Creator
Author

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....


Thiago_Justen_

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
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
OmarBenSalem

try

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

RutiTaumanRubin
Creator
Creator
Author

Thank you for your response -

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