<?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: Summing records without including duplicates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Summing-records-without-including-duplicates/m-p/918220#M469059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94329_1.png" style="height: auto; width: auto;" /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// your data&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;source:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Notification, work center, cost&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011, 1010, 456&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011, 1010, 34&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011, 1010, 79&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2012, 1023, 765&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2012, 1023, 903&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2013, 1023, 23&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2013, 1020, 45&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate load *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident source&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; Notification&amp;lt;&amp;gt;peek(Notification) &lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;or Notification=Peek(Notification) and [work center]&amp;lt;&amp;gt;Peek([work center])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;order by [work center], Notification, cost desc; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table source;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 19:25:55 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-07-28T19:25:55Z</dc:date>
    <item>
      <title>Summing records without including duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-records-without-including-duplicates/m-p/918217#M469056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some records that I am trying to sum, but have duplicate line items because of the report I am utilizing. I want to be able to select the last or max value of the duplicate records and use it to create the sum. Can someone help me out? Here is an example of the records:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notification, work center, cost&lt;/P&gt;&lt;P&gt;2011, 1010, 456&lt;/P&gt;&lt;P&gt;2011, 1010, 34&lt;/P&gt;&lt;P&gt;2011, 1010, 79&lt;/P&gt;&lt;P&gt;2012, 1023, 765&lt;/P&gt;&lt;P&gt;2012, 1023, 903&lt;/P&gt;&lt;P&gt;2013, 1023, 23&lt;/P&gt;&lt;P&gt;2013, 1020, 45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I were to get the records to the right state for summing, they would look like the items below without the duplicates:&lt;/P&gt;&lt;P&gt;2011, 1010, 456&lt;/P&gt;&lt;P&gt;2012, 1023, 903&lt;/P&gt;&lt;P&gt;2013, 1023, 23&lt;/P&gt;&lt;P&gt;2013, 1020, 45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 14:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-records-without-including-duplicates/m-p/918217#M469056</guid>
      <dc:creator />
      <dc:date>2015-07-28T14:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Summing records without including duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-records-without-including-duplicates/m-p/918218#M469057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Inline [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notification, work center, cost&lt;/P&gt;&lt;P&gt;2011, 1010, 456&lt;/P&gt;&lt;P&gt;2011, 1010, 34&lt;/P&gt;&lt;P&gt;2011, 1010, 79&lt;/P&gt;&lt;P&gt;2012, 1023, 765&lt;/P&gt;&lt;P&gt;2012, 1023, 903&lt;/P&gt;&lt;P&gt;2013, 1023, 23&lt;/P&gt;&lt;P&gt;2013, 1020, 45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Notification as Not,&lt;/P&gt;&lt;P&gt;[work center] as Work,&lt;/P&gt;&lt;P&gt;max(cost) as Mcost&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Group by&lt;/P&gt;&lt;P&gt;Notification,&lt;/P&gt;&lt;P&gt;[work center];&lt;/P&gt;&lt;P&gt;drop table Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-07-28_163913.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94278_2015-07-28_163913.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-records-without-including-duplicates/m-p/918218#M469057</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-07-28T15:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Summing records without including duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-records-without-including-duplicates/m-p/918219#M469058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or in the front end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Inline [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notification, work center, cost&lt;/P&gt;&lt;P&gt;2011, 1010, 456&lt;/P&gt;&lt;P&gt;2011, 1010, 34&lt;/P&gt;&lt;P&gt;2011, 1010, 79&lt;/P&gt;&lt;P&gt;2012, 1023, 765&lt;/P&gt;&lt;P&gt;2012, 1023, 903&lt;/P&gt;&lt;P&gt;2013, 1023, 23&lt;/P&gt;&lt;P&gt;2013, 1020, 45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;=max(aggr(max(cost),Notification,[work center]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-07-28_164543.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94279_2015-07-28_164543.png" style="height: 197px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-records-without-including-duplicates/m-p/918219#M469058</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-07-28T15:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Summing records without including duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-records-without-including-duplicates/m-p/918220#M469059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94329_1.png" style="height: auto; width: auto;" /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// your data&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;source:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Notification, work center, cost&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011, 1010, 456&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011, 1010, 34&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2011, 1010, 79&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2012, 1023, 765&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2012, 1023, 903&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2013, 1023, 23&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2013, 1020, 45&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate load *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident source&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; Notification&amp;lt;&amp;gt;peek(Notification) &lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;or Notification=Peek(Notification) and [work center]&amp;lt;&amp;gt;Peek([work center])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;order by [work center], Notification, cost desc; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table source;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 19:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-records-without-including-duplicates/m-p/918220#M469059</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-28T19:25:55Z</dc:date>
    </item>
  </channel>
</rss>

