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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Variable not evaluating

Hi everybody

Set vbg7='G'

Set vBG6='R'

If(vbg7 = 'G' and vBG6 <> 'G', vBG6, vbg7)

with above formula I'm still getting 'G' instead of 'R', what mistake I'm making?

Thanking you

5 Replies
Clever_Anjos
Employee
Employee

Getting R, here

Capturar.PNG

sunny_talwar

May be share your app

vvvvvvizard
Partner - Specialist
Partner - Specialist

If(vbg7 = 'G' and vBG6 <> 'G', 1,2)

Do you get one or two

vvvvvvizard
Partner - Specialist
Partner - Specialist

Copy this to script

Set vbg7='G';

Set vBG6='R';

now in textbox add

=If(vbg7 = 'G' and vBG6 <> 'G', vBG6, vbg7

Anonymous
Not applicable
Author

Hi Guys

I appreciate your help, btw in my case vbg7 needed to evaluate ($(vbg7)) first.

Now works

Thanking you all of you for your valuable time