<?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 Calculate total on-the-fly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-total-on-the-fly/m-p/194697#M55504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Attached is a sample file on what I'm trying to achieve.&lt;/P&gt;&lt;P&gt;I can get the total easily by doing a group by aggregation in the script.&lt;/P&gt;&lt;P&gt;I want to get the ratio of sales of Display and Reporting Company by its corresponding Company. Company is not part of the chart dimension. Is there a way to do this total column calculation on the fly as I have other matter for e.g. currency exchange rate to consider.&lt;/P&gt;&lt;P&gt;Thanks! Any input is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Jun 2010 17:12:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-20T17:12:37Z</dc:date>
    <item>
      <title>Calculate total on-the-fly</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-total-on-the-fly/m-p/194697#M55504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Attached is a sample file on what I'm trying to achieve.&lt;/P&gt;&lt;P&gt;I can get the total easily by doing a group by aggregation in the script.&lt;/P&gt;&lt;P&gt;I want to get the ratio of sales of Display and Reporting Company by its corresponding Company. Company is not part of the chart dimension. Is there a way to do this total column calculation on the fly as I have other matter for e.g. currency exchange rate to consider.&lt;/P&gt;&lt;P&gt;Thanks! Any input is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jun 2010 17:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-total-on-the-fly/m-p/194697#M55504</guid>
      <dc:creator />
      <dc:date>2010-06-20T17:12:37Z</dc:date>
    </item>
    <item>
      <title>Calculate total on-the-fly</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-total-on-the-fly/m-p/194698#M55505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I think I had a similar problem as yours. Although I`m not sure, please check to see if this would help you calculate the total on the fly:&lt;/P&gt;&lt;P&gt;aggr(sum(Sales),[Company])&lt;/P&gt;&lt;P&gt;If necessary, you can also put in more than one dimension to group by for example:&lt;/P&gt;&lt;P&gt;aggr(sum(Sales),[Company],[ratio])&lt;/P&gt;&lt;P&gt;The function aggr() will then calculate the sum of sales for each individual company, and for each individual ratio, displaying the correct total.&lt;/P&gt;&lt;P&gt;Hope this is what you were looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jun 2010 17:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-total-on-the-fly/m-p/194698#M55505</guid>
      <dc:creator />
      <dc:date>2010-06-20T17:55:35Z</dc:date>
    </item>
  </channel>
</rss>

