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

Calculation for each dimension in chart using variables

Hello, I have a list of towns and a cash value:

LocationValue
Town 16654
Town 21213
Town 39988
Town 44458

I need to provide an input table with a number variable for each town. Then using the number input by the user for each town, calculate Variable*Value=Metric in a bar graph.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

just an idea in the attachment

you can edit the InputVar field in the tablebox at the top

View solution in original post

7 Replies
maxgro
MVP
MVP

just an idea in the attachment

you can edit the InputVar field in the tablebox at the top

HirisH_V7
Master
Master

Hi ,

Check this,

Input Variable Chart.PNG

From your data,

->Create a Input Box and Define a variable.

->In Chart -> Expression -> Sum(Value)*Variable.

Then by passing the value in input box varies your result.

Hope this Helps,

PFA,

Regards,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
rajeshforqlikvi
Creator
Creator

Hi,

you can take any no of Input box, in this example i have taken only two input box.

Please find attached Qlikview Doc.

Not applicable
Author

Maxgro, thanks - now what if I have 4 more values that need the same treatment? Can we make more than 1 INPUTFIELD in a qvw?

Not applicable
Author

Just to show what i need a little better, I'm loading Town and Value from the data source. The users will input the "Input Variable". The chart expression will use the "Formula" to produce the chart below. Is INPUTFIELD still a viable solution? Can this even be done?

Untitled.png

HirisH_V7
Master
Master

Hi,

Like this,

Adding new input field column as other,

PFA

HTH,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
Not applicable
Author

Perfect, thank you.