Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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