Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
bert_geraerts
Contributor II
Contributor II

Use variable expression name in another expression

Dear all,

Who can help me with the following:

I have created a few expressions that I named using a formula. (=label)

='W' & week(vStartWeek + 7)

So I have 5 expressions that are named W51 / W52 / W1 / W2 / W3.

But now I would like to use the value of these expressions in a different expression.

='[W' & week(vStartWeek + 7) & ']' is not working, but when I use [W51] it works.
So Qlikview doesn't recognise the name as an expression when i use a formula.

 

Who can tell me how to enter a variable labelname in a formula?

 

 

 

 

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this

$(='[W' & week(vStartWeek + 7) & ']')

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

Try this

$(='[W' & week(vStartWeek + 7) & ']')