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: 
Anonymous
Not applicable

Can you use a variable in a defined measure?

Hello All,

I am trying to use a variable in defined measure that I am trying to create.

Can this be done? If not, is there a work around?

Variable is called Pro Rated Targetpro rated target.PNG

Measure: measure.PNG

I am using the variable that I created above in my measure, but its not working ? Is my syntax off or is that not possible?

2 Replies
siddharth_s3
Partner - Creator II
Partner - Creator II

Enclose your variable within the $()

That is $(MeasureName)

ErikWetterberg
Master
Master

Yes, it is definitely possible, and probably best practice too. Just correct your syntax to $(ProRatedTarget). (I would avoid blanks in variable names)

Erik Wetterberg