Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Announcements
Modernize Your QlikView Deployment webinar, Nov. 3rd. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Creator II
Creator II

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
Highlighted
Employee
Employee

Getting R, here

Capturar.PNG

Highlighted

May be share your app

Highlighted
Specialist
Specialist

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

Do you get one or two

Highlighted
Specialist
Specialist

Copy this to script

Set vbg7='G';

Set vBG6='R';

now in textbox add

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

Highlighted
Creator II
Creator II

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