Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

I want to use variable to store some value and then use that variable to give a reasult

Hi Everyone

I want to use variable to store some value and then use that variable to give a reasult

how can i use them

4 Replies
tresesco
MVP
MVP

Please explain with an example what you want.

Not applicable
Author

suppose A is a variable and I'm storing a value to it

now i want to use that variable in some other expression like

K=A+B  (where K,B is  a variable and i will show the value of K on the sheet

so how can i do it?

tresesco
MVP
MVP

May be like attached screen shot

111.png

Not applicable
Author

press ctrl+alt+v and the variable overview will open up infront of you. There You can click on ADD button to create a new variable. After clicking on the ADD button it will ask you to give the name of the variable. Write the varable name and press OK. Then Select the variable name you created and after that write your expression in the Defination Box Below e.g. Sum(Amount).

After you have declared variable, you can use it anywhere in the frontend to display the result. For Example, Create a text box. Go into the properties of Text Box and Write =$(NameOfVariable) and press ok to see the expression result written in your textbox.

Screenshot of Tresesco comment will help you understand my comment.

Hope it helps