Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
risabhroy_03
Partner - Creator II
Partner - Creator II

Using variable in set analysis

I have created a variable named A_GFPL_MFG_Warehouse_Pivot_Flag which either gives 1 or 0.

I want to use this variable inside my set expression but when I place it my whole data vanishes.

Please help.

$(A_GFPL_MFG_Warehouse_Pivot_Flag)={1},

Labels (1)
2 Replies
ali_hijazi
Partner - Master II
Partner - Master II

Hello
you can't use your variable as such

you can do something like this in your expression:
if ($(A_GFPL_MFG_Warehouse_Pivot_Flag) = 1, do something , do something else)
knowing that your variable should start with equal sign (kind of optimization)

I can walk on water when it freezes
anat
Master
Master

i think so that is not possible,but we can do like

define flag in backend using inline 

test:

load * inline [

flag

1

];

 

so in UI use like

sum({<flag={=$(variable)}>}sal)