Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
nickmarlborough
Creator
Creator

Adding Values for Null and Empty values

Hi, 

I have a column which has:

1) true values - i.e. regular text populating the field

2) null values

3) empty values

 

I would like in the expression to have it so null values show as 'N/A' and empty values are 'Empty' 

 

how can i do this in the expression in the table for that column?

Labels (2)
4 Replies
BrunPierre
Partner - Master
Partner - Master

?

=If(IsNull([YourField]), 'N/A', If(Len(Trim([YourField])) = 0, 'Empty', [YourField]))

Anil_Babu_Samineni

I advise to go with, NullAsValue | Qlik Sense on Windows Help

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
neerajthakur
Creator III
Creator III

if(isnull(FieldName)=-1,'N/A',

if(len(FieldName)<=0,'Empty',FieldName)) as FieldName

Try this

Thanks & Regards,
Please Accepts as Solution if it solves your query.
Padma123
Contributor III
Contributor III

If(IsNull(sales),'N/A',if(sales<>Trim(sales),'Empty',sales))