Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can I reference value of a text object in a formula?

Is it possible to reference the value of a text object in a formula?

I have two text objects that display percentages. I also need to display the difference between the two percentages.

Is is possible to refer to the value in the text object directly (e.g Difference = Text1.Value - Text2.Value) or will I need to write out the formula including the formula for both the text objects (e.g Difference = (entire formula for calculating Text1) - (entire formula for calculating Text2) )?

I only ask because I will need to repeat this kind of thing many times in the dashboard.

Any help or ideas would be greatly appreciated

1 Solution

Accepted Solutions
tresesco
MVP
MVP

No you can't refer like that directly. Alternatively you can think of using variables to hold the expression value and use that variable as and when needed.

View solution in original post

3 Replies
Not applicable
Author

Hi,

Please try this: Difference = GetFieldValue(Text 1) - GetFieldValue(Text 2).

tresesco
MVP
MVP

No you can't refer like that directly. Alternatively you can think of using variables to hold the expression value and use that variable as and when needed.

Not applicable
Author

Thanks, I thought that might be the case