<?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: Aggr with sum - something wrong in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100641#M16031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(total aggr(NODISTINCT sum(&amp;nbsp; {1&amp;lt;TransType = {2} &amp;gt;} QTY),TransRefId))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;or better if you can attach screenshort of chart where you want this.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Mayank&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2018 07:02:18 GMT</pubDate>
    <dc:creator>mayankraoka</dc:creator>
    <dc:date>2018-09-24T07:02:18Z</dc:date>
    <item>
      <title>Aggr with sum - something wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100640#M16030</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;sum(aggr(NODISTINCT sum({1&amp;lt;TransType = {2} &amp;gt;} QTY),TransRefId))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working fine while only 1 line in range with the same TRANSTYPE + TransRefId, but if we have more than 1 line - something wrong.&lt;/P&gt;&lt;P&gt;In ex. is 3 lines with the same TransType and TransRefId and result of sum is 9??? must be 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 422px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="146"&gt;ItemId&lt;/TD&gt;&lt;TD class="xl63" width="86"&gt;DatePhysical&lt;/TD&gt;&lt;TD class="xl63" width="47"&gt;Qty&lt;/TD&gt;&lt;TD class="xl63" width="70"&gt;TransType&lt;/TD&gt;&lt;TD class="xl63" width="73"&gt;TransRefId&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;JE-9011800&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;2&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;JE-9011800&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-3&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;2&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;JE-9011800&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;2&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-GR-KV-PASA-00-02&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-1,172&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-GR-KT-KUKU-00-03&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,752&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-GR-KT-KUKU-00-03&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,003&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-04-SAR-00-0-00-01&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,006&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-04-SAR-00-0-00-01&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,364&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-04-SAR-00-0-00-01&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,001&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-03-SAU-00-0-99-02&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-23,9&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-03-SAU-00-0-99-02&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-156,1&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-06-RUG-00-0-00-01&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,149&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-14-MIE-00-0-09-07&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,09&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-14-MIE-00-0-09-07&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,003&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-04-KOK-00-0-99-01&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,025&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-04-RIE-00-50-01&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-45&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-04-KAN-00-0-99-02&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,054&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-04-KAN-00-0-99-02&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,003&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-08-CIB-00-0-99-01&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-6&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-08-CIB-00-0-99-01&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-12-NAC-00-0-50-01&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,015&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;PA-GR-KT-ZIRN-00-03&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-0,15&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Z-GPS-PRIEM&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-3&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Z-GPS-SMULK&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-3&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Z-GPS-ATKRO&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-3&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Z-GPS-GRANU&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2018.07.03&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-3&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;gu074031&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 06:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100640#M16030</guid>
      <dc:creator>irmantas</dc:creator>
      <dc:date>2018-09-24T06:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with sum - something wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100641#M16031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(total aggr(NODISTINCT sum(&amp;nbsp; {1&amp;lt;TransType = {2} &amp;gt;} QTY),TransRefId))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;or better if you can attach screenshort of chart where you want this.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Mayank&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 07:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100641#M16031</guid>
      <dc:creator>mayankraoka</dc:creator>
      <dc:date>2018-09-24T07:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with sum - something wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100642#M16032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe without NODISTINCT&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(aggr(sum({1&amp;lt;TransType = {2} &amp;gt;} QTY),TransRefId))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 07:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100642#M16032</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-24T07:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with sum - something wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100643#M16033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same - 9&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214252_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 07:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100643#M16033</guid>
      <dc:creator>irmantas</dc:creator>
      <dc:date>2018-09-24T07:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with sum - something wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100644#M16034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without NODISTINCT in this case works, but I need NODISTINCT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 07:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100644#M16034</guid>
      <dc:creator>irmantas</dc:creator>
      <dc:date>2018-09-24T07:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with sum - something wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100645#M16035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read this post about&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NODISTINCT&amp;nbsp; in aggr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/232331"&gt;Re: What NODISTINCT parameter does in AGGR function?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 07:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100645#M16035</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-24T07:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with sum - something wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100646#M16036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove nodistinct and try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 08:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100646#M16036</guid>
      <dc:creator>mayankraoka</dc:creator>
      <dc:date>2018-09-24T08:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with sum - something wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100647#M16037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I write, I need NODISTINCT in other case. &lt;/P&gt;&lt;P&gt;Just need to know , why the sum of qty is 9, because I have three rows, sum is made three times : 3 x 3 = 9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 08:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100647#M16037</guid>
      <dc:creator>irmantas</dc:creator>
      <dc:date>2018-09-24T08:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with sum - something wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100648#M16038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Because NODISTINCT replicates the sum to every (in this case all three) aggregated raw, then you sum them and get 9.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 08:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100648#M16038</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-24T08:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with sum - something wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100649#M16039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to replace the NODISTINCT with Total&amp;lt;FIELDLIST&amp;gt; and adding dimensions to the Aggr() dimensions to get the needed granularity, and maybe the set expression in your inner aggregation is conflicting with your needs, but that's hard to tell without actually knowing your complete needs (you only told us 'I need NODISTINCT in other cases', but nothing about these other cases).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( aggr( {1} sum(Total&amp;lt;TransRefId&amp;gt; If(TransType = 2, Qty)),TransRefId,ItemId))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 09:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100649#M16039</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-09-24T09:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with sum - something wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100650#M16040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I must write all needs:&lt;/P&gt;&lt;P&gt;I have Invettrans table, were are all items transactions as you can see in my first post.&lt;/P&gt;&lt;P&gt;I need by selecting ItemId (TransType - "1") to find SUM of Item QTY, and in other field - SUM of all trans with TransType is "2" and TransRefId is the same as range by selected ItemId&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100650#M16040</guid>
      <dc:creator>irmantas</dc:creator>
      <dc:date>2018-09-24T11:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with sum - something wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100651#M16041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally, Thank you Stefan - working:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-sum-something-wrong/m-p/100651#M16041</guid>
      <dc:creator>irmantas</dc:creator>
      <dc:date>2018-09-24T11:05:54Z</dc:date>
    </item>
  </channel>
</rss>

