<?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: Need help with Aggregating data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-Aggregating-data/m-p/1346625#M826964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have multiple instances of your Dates for each dimension of your Pivot. So you need to consider either Min or Max date for all possible combination like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Amt)* (max(Pdate)-max(Ddate))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jul 2017 10:41:10 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2017-07-07T10:41:10Z</dc:date>
    <item>
      <title>Need help with Aggregating data</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Aggregating-data/m-p/1346622#M826961</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;I have attached test QVW, need help to get result in 2 pivot tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below expression are not working:&lt;/P&gt;&lt;P&gt;1) Aggr(sum(Amt)*(Pdate-Ddate),DocumentType,[Doc Des],[Late - On Time],Year,month)&lt;/P&gt;&lt;P&gt;2) &lt;SPAN style="font-size: 13.3333px;"&gt;Aggr(sum(Amt)*(Pdate-Ddate),DocumentType,[Doc Des],[Late - On Time],Year,month)/sum(amt)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test2.PNG" class="jive-image image-1" height="240" src="https://community.qlik.com/legacyfs/online/169402_test2.PNG" style="height: 240px; width: 985.43px;" width="985" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Aggregating-data/m-p/1346622#M826961</guid>
      <dc:creator>ajaysingh29</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Aggregating data</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Aggregating-data/m-p/1346623#M826962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to see what values has Pdate - Ddate, but almost always is null:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/169430_Capture.PNG" style="height: 211px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have to fix this first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 10:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Aggregating-data/m-p/1346623#M826962</guid>
      <dc:creator>jmvilaplanap</dc:creator>
      <dc:date>2017-07-07T10:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Aggregating data</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Aggregating-data/m-p/1346624#M826963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh, and you can't use Aggr function as "final aggregation", if you need the sum, with this &lt;STRONG&gt;&lt;EM&gt;sum(Amt)*(Pdate-Ddate)&lt;/EM&gt;&lt;/STRONG&gt; is enough.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 10:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Aggregating-data/m-p/1346624#M826963</guid>
      <dc:creator>jmvilaplanap</dc:creator>
      <dc:date>2017-07-07T10:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Aggregating data</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Aggregating-data/m-p/1346625#M826964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have multiple instances of your Dates for each dimension of your Pivot. So you need to consider either Min or Max date for all possible combination like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Amt)* (max(Pdate)-max(Ddate))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 10:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Aggregating-data/m-p/1346625#M826964</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-07-07T10:41:10Z</dc:date>
    </item>
  </channel>
</rss>

