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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Variable and Set analysis

hi all,

trying to set a variable with the following expression

Set vYFactor = if(GetSelectedCount([X_Factor.Location])=0, only({<[X_Factor.Location]={"=$(vAverage)"}>}[X_Factor.Storage Paid]), only([X_Factor.Storage Paid]);

when I try to present it in a text box I dont get any value

any idea?

Labels (1)
13 Replies
alec1982
Specialist II
Specialist II
Author

the last expression you sent has errors in it

sunny_talwar
MVP
MVP

Yup forgot to remove the end part

LET vYFactor = 'If(GetSelectedCount([X_Factor.Location])=0, Only({<[X_Factor.Location]={"=$' & '#(vAverage)"}>}[X_Factor.Storage Paid]), Only([X_Factor.Storage Paid]))';

alec1982
Specialist II
Specialist II
Author

i still see extra # on it

sunny_talwar
MVP
MVP

LET vYFactor = 'If(GetSelectedCount([X_Factor.Location])=0, Only({<[X_Factor.Location]={"=$' & '(vAverage)"}>}[X_Factor.Storage Paid]), Only([X_Factor.Storage Paid]))';