Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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

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