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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

Expression help

i have to show Active or Inactive Customers

For Active customers1 the Flag is null value and

for inactive customer1 the flag is '01'

For Active customers2 the Flag is null value and

for inactive customer2 the flag is '01'

For Active customers3 the Flag is null value and

for inactive customer3 the flag is '01'

For Active customers4 the Flag is null value and

for inactive customer4 the flag in 'X'

pls help to write the expression??

2 Replies
sujeetsingh
Master III
Master III

Something like this will do

if(Active customers=1 and Flag =null() and

inactive customer=1 ,1,

if(Active customers=2 and Flag =null() and

inactive customer=2 , 1)) as flag

Anonymous
Not applicable

Hi,

Try with this:

if(flag=null(),'Active Customer',if(flag='01' or flag='X','Inactive Customer') as typeofCustomer.