<?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 Calculations in macros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculations-in-macros/m-p/196911#M56785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;You can use "Evaluate":&lt;/P&gt;&lt;P&gt;msgbox(ActiveDocument.Evaluate("Sum(Sales)"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Mar 2010 02:54:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-03-30T02:54:37Z</dc:date>
    <item>
      <title>Calculations in macros</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-in-macros/m-p/196910#M56784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In a macro I want to assign the sum of selected field values to a variable - eg sum(Amount). Is this possible? What is the syntax that I should use?&lt;/P&gt;&lt;P&gt;Can I do the calculation directly in the macro or can I get the value from a chart that I have in my application?&lt;/P&gt;&lt;P&gt;Where is the best place to find some documentation about this - I have looked at the API Guide but did not find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Kevin Long&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 02:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-in-macros/m-p/196910#M56784</guid>
      <dc:creator />
      <dc:date>2010-03-30T02:14:29Z</dc:date>
    </item>
    <item>
      <title>Calculations in macros</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-in-macros/m-p/196911#M56785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;You can use "Evaluate":&lt;/P&gt;&lt;P&gt;msgbox(ActiveDocument.Evaluate("Sum(Sales)"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 02:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-in-macros/m-p/196911#M56785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-30T02:54:37Z</dc:date>
    </item>
    <item>
      <title>Calculations in macros</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-in-macros/m-p/196912#M56786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Johannes&lt;/P&gt;&lt;P&gt;This works ok but out of interest is there a way of getting the values from a chart? Let's say that I have a chart that has calculations for period to date actual and budget sales along with number of working days etc. In my macro I run some selections to filter the table to show a single record for a sales person. Can I get the values from each of the chart expressions using something like GetSheetObject?&lt;/P&gt;&lt;P&gt;Thanks, Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 05:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-in-macros/m-p/196912#M56786</guid>
      <dc:creator />
      <dc:date>2010-03-30T05:20:09Z</dc:date>
    </item>
  </channel>
</rss>

