Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

jsanchezmayoral
New Contributor III

Posibility of using a measure label in other measure expression

Hi everyone,

Basically my question is the same as you can find here: Is it possible to re-use a measure in the expre... | Qlik Community

But as this post is closed I can not ask there.

Any one knows if this feature is implemented on current version of Qlik Sense?

Thanks a lot.

4 Replies
OmarBenSalem
Esteemed Contributor

Re: Posibility of using a measure label in other measure expression

Could u explain this with ur own case?

what measure do u have and what do u want to change/add?

and WHERE do u want to do this change? in which chart? or in the script?

Thanks

mdmukramali
Valued Contributor II

Re: Posibility of using a measure label in other measure expression

Hi,

you can do something like :

Create a variable with expression .

Like :

vSales

value:

Sum(Sales)

and you can use that $(vSales) into multiple places it will work.

if you want to use Measure A and Measure B in the Same Chart you can try to Use:

Column(1) in Measure B so it will read the data Values of the column(1).

even I tried Expression Measure A label in Measure B it's showing an error in syntax but showing the correct value.

MeasureA and MeasureB.png

jsanchezmayoral
New Contributor III

Re: Posibility of using a measure label in other measure expression

What I want to achieve is referencing a measure (by measure label I guess) in the color by expresion so the color changes with the measure value.

My problem is that the measure expression is too large, so I rather prefer to type just the measure name (label) and not the whole measure expression.

jsanchezmayoral
New Contributor III

Re: Posibility of using a measure label in other measure expression

Thanks for your answer but this is something I knew and I dont like it because its not effcient for me creating a variable for each chart with this needs.

Thas why a asked about getting this done just in the context of the chart.

Community Browser