Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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)