<?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: Help trying to sum using aggr where multiple records exist in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-trying-to-sum-using-aggr-where-multiple-records-exist/m-p/1342094#M413344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Only(event.duration_m), event.id))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 May 2017 09:10:55 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-05-26T09:10:55Z</dc:date>
    <item>
      <title>Help trying to sum using aggr where multiple records exist</title>
      <link>https://community.qlik.com/t5/QlikView/Help-trying-to-sum-using-aggr-where-multiple-records-exist/m-p/1342093#M413343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Good Morning All!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I think what I'm trying to do is fairly simple but I'm having issues achieving it this morning. I've attached a file where I need to sum the value for event.duration_m (and it uses a bit of set analysis), but as the row can sometimes be duplicated for the event.id, the value is too high - as there's a row for each hour the event occurs (i.e. if the duration is 4 hours long, we'll get four records with the same id).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I think I need to aggregate it over the event.id for distinct values, but this doesn't seem to work for me. In the attached file, I've selected an example record to where my problem is - if you could help it would be really appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kind Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 09:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-trying-to-sum-using-aggr-where-multiple-records-exist/m-p/1342093#M413343</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2017-05-26T09:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to sum using aggr where multiple records exist</title>
      <link>https://community.qlik.com/t5/QlikView/Help-trying-to-sum-using-aggr-where-multiple-records-exist/m-p/1342094#M413344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Only(event.duration_m), event.id))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 09:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-trying-to-sum-using-aggr-where-multiple-records-exist/m-p/1342094#M413344</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-26T09:10:55Z</dc:date>
    </item>
  </channel>
</rss>

