Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Talk to Experts, a LIVE Q&A Webinar. Bring your Qlik Sense Business questions on Aug. 4th. Register
Showing results for 
Search instead for 
Did you mean: 
Contributor III
Contributor III

storing Variables in Expressions

hi Folks 

I have to store this expression in a variable and that variable i'll put in qs-variable Extension object because this expression is not working in value bracket ,although this expression is working file in chart,but not in that Extension, so i thought i'll make this expression into  a variable in script and then I'll call it there so anyone can help me that how can we do it 


please Help me out 

2 Replies
Master II
Master II

Re: storing Variables in Expressions

let variable_1= pick(match(upper(UserID),upper(SubField(OSUser(),'UserId=',2))),UserCurrency)


OR  just create a variable from the UI as the variable in the script will contain the id of the person who reloaded it.

don't miss the = in the front


Learning never stops.

Re: storing Variables in Expressions

May be you need this

=Pick(Match(Upper(UserID), '$(=SubField(OSUser(),'\',2))'), UserCurrency)