Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Question : change the value of variable in a measure

Hello,

I am a new user of Qlik sense and I am looking for changing the value of a variable in a measure but its not working, can someone help me ?

The variable is initialised with "X" and can got the values "X" or "Y".

Measure :

=Variable='Y' and sum(...)

Without "Variable='Y' and" my function is working but i need to set the value of the variable at Y to got true value of my measure.

Best regards,

Maxime

3 Replies
Digvijay_Singh

You cannot change variable value in chart measures. You can only use variable value. Not sure what exactly you want to achieve, further explanation will help to figure out the best way to achieve your requirements.

lcontezini
Partner - Creator
Partner - Creator

You should look for "set analysis". Try this:

Sum( {< Variable = {'Y'} >} ... )

Between the {< .. >} you are setting the value of the variable to 'Y'.

Anonymous
Not applicable
Author

Okay thanks to both of you.