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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
NenadV
Creator II
Creator II

How to know which measure is selected when alternative measures are used?

Hi,

I need to show reference lines based on measure selected (alternative measures are used) and do not know how to get a measure name to use it in the reference expression.

Hope this is clear enough to draw my attention to a function or a way to achieve this.

Thank you

Labels (1)
3 Replies
_datadude
Partner - Contributor III
Partner - Contributor III

Hi @NenadV ,

Even though it's late: Better late than never – and others who have the same question might come across this post via search engines:

You can use GetObjectMeasure(0) to read the name of the measure.

Did that help you back then, or would it help you today?

Best,
Markus

NenadV
Creator II
Creator II
Author

Hi @markus  , thanks, it's been 2 and a half years since that question and as I had a stroke a week after I posted it iI now really can't remember the exact use case or a challenge.

I'll mark it as "l Iike it" and save it to my notes for future reference. thanks anyway and good luck in all walks of life.

 

_datadude
Partner - Contributor III
Partner - Contributor III

Oh my goodness!
Thank you so much for your wishes!
And I hope you are feeling much better. Wishing you good health.