Qlik Community

Qlik Sense App Development

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

Announcements
QlikWorld 2020: Join us May 11 - 14, 2020 in Phoenix, AZ. Register early and save $400. Learn More
Highlighted
sara_sk25
New Contributor

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?

Tags (2)
2 Replies
Partner
Partner

Re: Can you use a variable in a defined measure?

Enclose your variable within the $()

That is $(MeasureName)

ErikWetterberg
Honored Contributor

Re: Can you use a variable in a defined measure?

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