Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Talk to Experts, a LIVE Q&A Webinar. Bring your Qlik Sense Business questions on Aug. 4th. Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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 

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

please Help me out 

2 Replies
Highlighted
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

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

Learning never stops.
Highlighted

Re: storing Variables in Expressions

May be you need this

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