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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

variable usage

hi

can i know how to use a the value for a variable i got from an input field object and use it in some form of calculation.

1 Solution

Accepted Solutions
Not applicable
Author

Just use it in its native form, i.e. the name of the variable when you set it up (let's assume you variable name is NewVar).

If it is a number you could create an expression like =Sum(FieldValue) * NewVar

If it is a text variable then you could create an expression like =IF(NewVar='Value',Sum(a),Sum(b))

Hope it helps,

View solution in original post

1 Reply
Not applicable
Author

Just use it in its native form, i.e. the name of the variable when you set it up (let's assume you variable name is NewVar).

If it is a number you could create an expression like =Sum(FieldValue) * NewVar

If it is a text variable then you could create an expression like =IF(NewVar='Value',Sum(a),Sum(b))

Hope it helps,