<?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 Agregation by [Order - Position] in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Agregation-by-Order-Position/m-p/1697830#M53405</link>
    <description>&lt;P&gt;Hi Qlik Gurus,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing an Application in QlikSense and I have to calculate "Pending Quantity to Receive" of the "Document - Positions" in a Purchasing Scenario. Then my calculation should be [Purchase Order Quantity] - [Quantity Received]. The problem is that if in the App I create a table and I analyze "Pending Quantity to Receive" by "Company", the result is different than if I analyze it by "Document - Position". I want the calculation to be done aggregated for every "Document - Position" to see the same result if I check this KPI by Document, Company or any other Dimension.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me with this calculation please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2020 17:10:45 GMT</pubDate>
    <dc:creator>jorditorras</dc:creator>
    <dc:date>2020-04-29T17:10:45Z</dc:date>
    <item>
      <title>Agregation by [Order - Position]</title>
      <link>https://community.qlik.com/t5/App-Development/Agregation-by-Order-Position/m-p/1697830#M53405</link>
      <description>&lt;P&gt;Hi Qlik Gurus,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing an Application in QlikSense and I have to calculate "Pending Quantity to Receive" of the "Document - Positions" in a Purchasing Scenario. Then my calculation should be [Purchase Order Quantity] - [Quantity Received]. The problem is that if in the App I create a table and I analyze "Pending Quantity to Receive" by "Company", the result is different than if I analyze it by "Document - Position". I want the calculation to be done aggregated for every "Document - Position" to see the same result if I check this KPI by Document, Company or any other Dimension.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me with this calculation please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 17:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Agregation-by-Order-Position/m-p/1697830#M53405</guid>
      <dc:creator>jorditorras</dc:creator>
      <dc:date>2020-04-29T17:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Agregation by [Order - Position]</title>
      <link>https://community.qlik.com/t5/App-Development/Agregation-by-Order-Position/m-p/1697900#M53415</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I understand your need correctly, you need to calculate the difference between PO Qty and Received Qty, aggregated by "Document - Position" rather than for the whole company. In this case, you need to use the advanced aggregation function AGGR() with "Document - Position" as a dimension. Something along these lines:&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;AGGR(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RangeMax(0, sum(POQty) - sum(ReceivedQty))&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;, [Document - Position)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;I added the RangeMax() function to only include positive balances - in case you might have order with Received qty that it higher than the PO Qty.&lt;/P&gt;&lt;P&gt;I think this calculation should work for your needs.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 21:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Agregation-by-Order-Position/m-p/1697900#M53415</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2020-04-29T21:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Agregation by [Order - Position]</title>
      <link>https://community.qlik.com/t5/App-Development/Agregation-by-Order-Position/m-p/1697918#M53419</link>
      <description>&lt;P&gt;Wowwww Lots of Thanks!!!! It work perfectly!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 22:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Agregation-by-Order-Position/m-p/1697918#M53419</guid>
      <dc:creator>jorditorras</dc:creator>
      <dc:date>2020-04-29T22:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Agregation by [Order - Position]</title>
      <link>https://community.qlik.com/t5/App-Development/Agregation-by-Order-Position/m-p/1699713#M53584</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Now I'm seeing that I have a problem if I see this data in a Pivot Table, as when I analyze Totals by Document, it's correct. But when I analyze totals by Company or any other dimension, then the result is wrong.... This is only happening in Pivot Table. If I see use this formula in a straight table and I see the data by Company, the result is OK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to adapt this formula to be able to see the correct totals by any dimension in a Pivot Table?&lt;/P&gt;&lt;P&gt;Thanks!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 08:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Agregation-by-Order-Position/m-p/1699713#M53584</guid>
      <dc:creator>jorditorras</dc:creator>
      <dc:date>2020-05-07T08:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Agregation by [Order - Position]</title>
      <link>https://community.qlik.com/t5/App-Development/Agregation-by-Order-Position/m-p/1700053#M53620</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;In order to use the AGGR() function in a different chart, you need to add all other chart dimensions into the list of the AGGR dimensions. Then it will work.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 02:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Agregation-by-Order-Position/m-p/1700053#M53620</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2020-05-08T02:29:40Z</dc:date>
    </item>
  </channel>
</rss>

