<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get total value from a chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-total-value-from-a-chart/m-p/1391060#M422923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Using TOTAL Keyword in your expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Sep 2017 15:08:54 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-09-11T15:08:54Z</dc:date>
    <item>
      <title>Get total value from a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Get-total-value-from-a-chart/m-p/1391059#M422922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to ask you if there is a way to get value from the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see on screenshot, I need that red and green value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculate those in load script is not possible, since data in that chart is divided in several tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to store those values in variables, and use them for some other calculations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 13:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-total-value-from-a-chart/m-p/1391059#M422922</guid>
      <dc:creator />
      <dc:date>2017-09-11T13:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get total value from a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Get-total-value-from-a-chart/m-p/1391060#M422923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Using TOTAL Keyword in your expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 15:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-total-value-from-a-chart/m-p/1391060#M422923</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-11T15:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get total value from a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Get-total-value-from-a-chart/m-p/1391061#M422924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, use the expression from the chart in a text object, or pre-calculate it in a variable and you'll get the total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a difference between...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vBonus = '=sum(Bonus)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vBonus = 'sum(Bonus)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...in a variable (above shows how to write them into your script, you could just do this in the variable overview instead, CTRL + ALT + V). If you use the equals, you'll get the value and if you put that in a chart it'll show the same value all the way down, however the one without the equal will write that expression and calculate a different value for each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reference the variable elsewhere use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vBonus)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do other calculations like variance in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Bonus)-$(vBonus)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...would give you the variance versus the overall total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 15:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-total-value-from-a-chart/m-p/1391061#M422924</guid>
      <dc:creator>sam_grounds</dc:creator>
      <dc:date>2017-09-11T15:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get total value from a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Get-total-value-from-a-chart/m-p/1391062#M422925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(YourExpression, YourDimension))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 15:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-total-value-from-a-chart/m-p/1391062#M422925</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-11T15:19:34Z</dc:date>
    </item>
  </channel>
</rss>

