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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using output of one chart in another

I have a created a straight table which uses data plus undertakes some calculations on it. I.e. I get total of Premiums in one column then spread it over policy duration in another column and get Accrued Premium. Then take Payouts from another table and create an expression to display Profit. In the same chart I can refer to other expressions and get the result.

Now I want to create a bar graph using the output of column [Profit] which is in Chart ID CH28. How can I reference that chart?

Thanks.

Labels (1)
3 Replies
alexandros17
Partner - Champion III
Partner - Champion III

I think you can't; each chart output depends on dimensions and expressions of that chart.

To obtain same values in another chart ypu have to replicate dimensions and expressions.

Hope it helps

Not applicable
Author

Since the working is done in quite a few steps, is it possible to have expressions and hide them? Otherwise it becomes quite a long expression.

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

I am afraid there is no way to read the results of an expression from a chart into another chart. What you can do, is put the expression into a variable and use that variable in both charts. For (a simple) example, In your script:

Set vExpr = =Sum(Sales);

(Yes that is two = signs) You could also enter the expression using the variable dialog (Ctrl-Alt-V). And in your charts, use the expression like this:

$(vExpr)

If the expression changes, then simply change the variable definition. Note that this does not stop QV from recalculating the expression for each chart.

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein