<?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 If match / compare values then perform aggr sum function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-match-compare-values-then-perform-aggr-sum-function/m-p/633795#M1086876</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;&lt;/P&gt;&lt;P&gt;If the value of a certain column of a certain table matches that with the value of another column of another table, I want for those values an aggregated sum caried out;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/59817_example.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible that an OrderForecast number is not available in the Actual table and the amount of Order lines (both Forecast as well as Actual) may fluctuate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if the OrderForecast number is also present in the OrderActual column, I want to have the sum of the ForecastQuantity of all OrderForecast lines minus the sum of the ActualQuantity of all OrderActual lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example output for OrderForecast 2 would be: (8+6) - (2+3+4+3)= 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 09:27:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-30T09:27:01Z</dc:date>
    <item>
      <title>If match / compare values then perform aggr sum function</title>
      <link>https://community.qlik.com/t5/QlikView/If-match-compare-values-then-perform-aggr-sum-function/m-p/633795#M1086876</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;&lt;/P&gt;&lt;P&gt;If the value of a certain column of a certain table matches that with the value of another column of another table, I want for those values an aggregated sum caried out;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/59817_example.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible that an OrderForecast number is not available in the Actual table and the amount of Order lines (both Forecast as well as Actual) may fluctuate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if the OrderForecast number is also present in the OrderActual column, I want to have the sum of the ForecastQuantity of all OrderForecast lines minus the sum of the ActualQuantity of all OrderActual lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example output for OrderForecast 2 would be: (8+6) - (2+3+4+3)= 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 09:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-match-compare-values-then-perform-aggr-sum-function/m-p/633795#M1086876</guid>
      <dc:creator />
      <dc:date>2014-05-30T09:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: If match / compare values then perform aggr sum function</title>
      <link>https://community.qlik.com/t5/QlikView/If-match-compare-values-then-perform-aggr-sum-function/m-p/633796#M1086877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rename the fields OrderForcast and OrderActual to OrderID to associate the two tables. Your expression would become &lt;EM&gt;sum(ForecastQuantity) - sum({&amp;lt;ForecastQuantity={'*'}&amp;gt;}ActualQuantity)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-match-compare-values-then-perform-aggr-sum-function/m-p/633796#M1086877</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-05-30T10:29:19Z</dc:date>
    </item>
  </channel>
</rss>

