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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

verifying null in two caolumns

Hi All,

I have two columns customer,Currency

customer,currency

-,-

-,-

If customer is null and Currency is null.I want to replace null in customer with some text ex;'Speciality'

How can I achieve this?

Thanks,

Mahendra.

2 Replies
Agis-Kalogiannis
Employee
Employee

Hi Mahendra

You can do something like

load

  if(customer=null() and Currency=null(), 'Speciality', customer) AS customer,

  Currency

FROM ...

Agis

maxgro
MVP
MVP

if(IsNull(customer) and IsNull(currrency), 'Speciality', customer) as customer

or

if(len(trim(customer))=0 and len(trim(currrency))=0, 'Speciality', customer) as customer