<?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: What NODISTINCT parameter does in AGGR function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/2098432#M1224295</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;You can use Total &amp;lt;Group by Fields&amp;gt; in sum function instead of Aggr too.&lt;/P&gt;
&lt;P&gt;like this :&lt;/P&gt;
&lt;P&gt;=SUM(Total&amp;lt;Country,Month&amp;gt; Metric)&lt;/P&gt;
&lt;P&gt;Have good Day&lt;/P&gt;
&lt;P&gt;Saray&lt;/P&gt;</description>
    <pubDate>Sun, 30 Jul 2023 06:12:17 GMT</pubDate>
    <dc:creator>saray_JD</dc:creator>
    <dc:date>2023-07-30T06:12:17Z</dc:date>
    <item>
      <title>What NODISTINCT parameter does in AGGR function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/368153#M136903</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 try to figure out what the NODISTINCT parameter does in the AGGR function. When do we need to use it? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have some clear examaple for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 08:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/368153#M136903</guid>
      <dc:creator />
      <dc:date>2012-06-26T08:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: What NODISTINCT parameter does in AGGR function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/368154#M136904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you've read the description in the Help, so I am not going to copy it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this thread is of any help (if you follow the links to Eva's other posts, you see also some examples).&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/222026#222026" title="http://community.qlik.com/message/222026#222026"&gt;http://community.qlik.com/message/222026&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the link to Evas thread including the sample file:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/221791#221791" title="http://community.qlik.com/message/221791#221791"&gt;http://community.qlik.com/message/221791&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 09:16:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/368154#M136904</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-26T09:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: What NODISTINCT parameter does in AGGR function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/368155#M136905</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;Sometimes aggr funcktion fills only some rows. If it does not work as expected, add nodistinct and it will.&lt;/P&gt;&lt;P&gt;If you started with nodistinct, and it doesn't work, take it away and see the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's what I do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is that some rows have more than a single value and it retunrs null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 09:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/368155#M136905</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2012-06-26T09:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: What NODISTINCT parameter does in AGGR function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/368156#M136906</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 did a little research on this issue, and that's what i found out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let assume the bellow data set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 256px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl25" height="18" width="64"&gt;Country&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD class="xl25" style="border-left: none;" width="64"&gt;Month&lt;/TD&gt;&lt;TD class="xl25" style="border-left: none;" width="64"&gt;Prod&lt;/TD&gt;&lt;TD class="xl25" style="border-left: none;" width="64"&gt;Metric&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="18" style="border-top: none;"&gt;IS&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="18" style="border-top: none;"&gt;IS&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="18" style="border-top: none;"&gt;IR&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="border-top: none; border-left: none;"&gt;A3&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="18" style="border-top: none;"&gt;IR&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl24" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use a AGGR in order to consider the sum by &lt;SPAN style="color: #ff0000;"&gt;Country &lt;/SPAN&gt;and &lt;SPAN style="color: #ff0000;"&gt;Month &lt;/SPAN&gt;only, and let it be presented in a chart with &lt;SPAN style="color: #ff0000;"&gt;Country&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;Month &lt;/SPAN&gt;and &lt;SPAN style="color: #ff0000;"&gt;Prod&lt;/SPAN&gt; dimensions.&lt;/P&gt;&lt;P&gt;As you can see, the&amp;nbsp; &lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;=AGGR(SUM(Metric),Country,Month)&lt;/STRONG&gt;&lt;/SPAN&gt; will not fill all the rows data, because the AGGR prepare a data set like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl25" height="18" width="64"&gt;&lt;SPAN style="color: #ff0000;"&gt;Country&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-left: none;" width="64"&gt;&lt;SPAN style="color: #ff0000;"&gt;Month&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-left: none;" width="64"&gt;Metric&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="18" style="border-top: none;"&gt;IS&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="18" style="border-top: none;"&gt;IR&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl24" height="18" style="border-top: none;"&gt;IR&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when QlikView try to use this set according to the Chart dimensions, it finds out it lacks information about the &lt;SPAN style="color: #ff0000;"&gt;Prod &lt;/SPAN&gt;Dimension, so it fills &lt;STRONG&gt;90 &lt;/STRONG&gt;only in the first row of the combination &lt;SPAN style="color: #ff0000;"&gt;Country&lt;/SPAN&gt;=&lt;SPAN style="color: #ff00ff;"&gt;IS &lt;/SPAN&gt;and &lt;SPAN style="color: #ff0000;"&gt;Month&lt;/SPAN&gt;=&lt;SPAN style="color: #ff00ff;"&gt;1&lt;/SPAN&gt;. The other row with the same combination gets Null ( &lt;STRONG&gt;- &lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt; Country &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt; Month &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt; Prod&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD&gt; Simple SUM &lt;/TD&gt;&lt;TD&gt; &lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;=AGGR(SUM(Metric),Country,Month)&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;=AGGR(&lt;SPAN style="color: #0000ff;"&gt;NODISTINCT &lt;/SPAN&gt;SUM(Metric),Country,Month)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #ff00ff;"&gt;IS&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff00ff;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;A1&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;90&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;90&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #ff00ff;"&gt;IS&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff00ff;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;A2&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;90&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IR&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A3&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IR&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;A1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can Solve it by adding &lt;SPAN style="color: #0000ff;"&gt;NODISTINCT &lt;/SPAN&gt;qualifier to the AGGR function, which causes the data to be replicated for the same combination (see above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps!&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 09:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/368156#M136906</guid>
      <dc:creator />
      <dc:date>2012-06-27T09:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: What NODISTINCT parameter does in AGGR function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/1989926#M1221255</link>
      <description>&lt;P&gt;Very precisely&amp;nbsp; explained !!&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Vikas&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 06:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/1989926#M1221255</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2022-10-07T06:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: What NODISTINCT parameter does in AGGR function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/2098432#M1224295</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;You can use Total &amp;lt;Group by Fields&amp;gt; in sum function instead of Aggr too.&lt;/P&gt;
&lt;P&gt;like this :&lt;/P&gt;
&lt;P&gt;=SUM(Total&amp;lt;Country,Month&amp;gt; Metric)&lt;/P&gt;
&lt;P&gt;Have good Day&lt;/P&gt;
&lt;P&gt;Saray&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 06:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/2098432#M1224295</guid>
      <dc:creator>saray_JD</dc:creator>
      <dc:date>2023-07-30T06:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: What NODISTINCT parameter does in AGGR function?</title>
      <link>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/2117648#M1224574</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=AGGR(SUM(Metric),Country,Month) &lt;/STRONG&gt;with expression output is different for me.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2023 06:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-NODISTINCT-parameter-does-in-AGGR-function/m-p/2117648#M1224574</guid>
      <dc:creator>vajid4525</dc:creator>
      <dc:date>2023-09-17T06:25:02Z</dc:date>
    </item>
  </channel>
</rss>

