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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

replace inside Variable

Hi,

I have variables

.Capture.JPG

In Var 2 I need to replace A to '', if Var1=cc in script. Var 2 should be A and B

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I get it.

In list box expression

IF(Var1<>'cc', Var2)

View solution in original post

3 Replies
MayilVahanan

Hi

Load Var1,Var3

If(Var1 = 'cc','',Var2) as Var2

from tablename; //filename.xls

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

Thank for reply.

I tried it.

In list box it shows A, B and ''.

How can I hide ''?

Regards,

Anonymous
Not applicable
Author

I get it.

In list box expression

IF(Var1<>'cc', Var2)