Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
becki_kain
Contributor III
Contributor III

getting variable values

hello:

i'm setting some variables, in the variable expression box, and like to see the value of all of them, in one place. It seems i can't do a text box with just

=var1

=var2

in it, to see them all.  is there another way to see all variables which are set, and as they change?  these are not variables set in the load script since they are based on user input. 

thanks

becki kain

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

As mw suggested, use an Input Box object. On the General tab, add each variable you want to see.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

View solution in original post

7 Replies
m_woolf
Master II
Master II

Use an Input box

vishsaggi
Champion III
Champion III

Can you explain a little. Use like = var1 & Chr(13) &var2

becki_kain
Contributor III
Contributor III
Author

sorry, so i'm setting a bunch of variables instead making (columns) expressions like :

v_total_sales1 = sum (total sales volume  for time period 1)

(pseudo code of course)

v_total_sales2 = sum (total sales volume  for time period 2)

v_seg_sales = seg_sales/v_total_sales1

the time periods are selected by the user, from a drop down.  is there a way of having a box or something that lists all variables, which are set, each time the user changes the time period times?

trdandamudi
Master II
Master II

Nagaraju code mentioned above will do exactly what you need. Try it out...

In a text box type as below:

= v_total_sales1 Chr(13)

  &v_total_sales2  Chr(13)

  &v_seg_sales

vishsaggi
Champion III
Champion III

Did you try the way i mentioned in my previous response. Can i know how exactly your variables defined?

Using Ctrl+ALt+V add variables with their relevant expressions while copying expressions use = equals to sign. Then

in your text box add those variables.

= Var1& Chr(13) &var1 & Chr(13) &var2

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

As mw suggested, use an Input Box object. On the General tab, add each variable you want to see.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

becki_kain
Contributor III
Contributor III
Author

thank you!  I was making this harder than it really had to be!  when you said "input box" I thought of user input, which I already have, not using it for display.  thanks!