Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

groussetm
New Contributor

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
Honored Contributor III

Re: Question : change the value of variable in a measure

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
Contributor

Re: Question : change the value of variable in a measure

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

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

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

groussetm
New Contributor

Re: Question : change the value of variable in a measure

Okay thanks to both of you.

Community Browser