Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
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
Creator
Creator

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