<?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: Group by dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197082#M878250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny,&lt;/P&gt;&lt;P&gt;I agree with you. But when Set Analysis comes in play, things become bit complicated. &lt;/P&gt;&lt;P&gt;Quoted &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&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;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The set analysis expression in your inner aggregation function does not define the set of possible values for the AGGR dimension fields. &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;If you need to modify this set (i.e. you want a different set than defined by the selections), you need to use a second set expression in the outer aggregation function.&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I always prefer to wrap AGGR with the appropriate Aggregate Function (Most of the cases the Inner aggregate function)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This gives a greater flexibility and accurate results when we amend the expressions with set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In short, I will never prefer to use the AGGR function without wrapping up the aggregate function&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jayant&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2016 22:12:24 GMT</pubDate>
    <dc:creator>jayanttibhe</dc:creator>
    <dc:date>2016-10-27T22:12:24Z</dc:date>
    <item>
      <title>Group by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197075#M878243</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'm trying to achieve No of week launch by article level with below expected output format, can you advise me. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No of week launch:&lt;/P&gt;&lt;P&gt;=Aggr((Max(maxSalesDate)-min(minSalesDate))/7,ArticleNo2)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Expected output(no of week launch by article).JPG" class="jive-image image-1" src="/legacyfs/online/142205_Expected output(no of week launch by article).JPG" style="height: auto;" /&gt; !&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/Group-by-dimension/m-p/1197075#M878243</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Group by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197076#M878244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(NODISTINCT(Max(maxSalesDate)-min(minSalesDate))/7,ArticleNo2)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197076#M878244</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-27T16:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Group by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197077#M878245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or a better solution would be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=(Max(TOTAL &amp;lt;ArticleNo2&amp;gt; maxSalesDate)-min(TOTAL &amp;lt;ArticleNo2&amp;gt;minSalesDate))/7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142252_Capture.PNG" style="height: 426px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197077#M878245</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-27T16:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Group by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197078#M878246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please note that - &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NODISTINCT Vs TOTAL - &lt;/STRONG&gt;there is huge diff. I.e. if there are more than 1 instance of the chart dimensions - in this case &lt;STRONG&gt; &lt;/STRONG&gt;suppose 2 Rows of the dimensions as mentioned following in data model -&amp;nbsp; then &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NODISTINCT &lt;/STRONG&gt; take account the Facts associated with those separately. However, this is not the Case with TOTAL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="75" style="width: 381px; height: 77px;" width="381"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" width="65"&gt;ArticleNo2&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="66"&gt;Launch&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="52"&gt;Color&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;20180010&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Winter 2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;BLACK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;20180010&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Winter 2015&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;BLACK&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 19:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197078#M878246</guid>
      <dc:creator>jayanttibhe</dc:creator>
      <dc:date>2016-10-27T19:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Group by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197079#M878247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure I understand the difference between NODISTINCT and TOTAL here. Can you may be elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 19:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197079#M878247</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-27T19:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Group by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197080#M878248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached example to elaborate my point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 19:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197080#M878248</guid>
      <dc:creator>jayanttibhe</dc:creator>
      <dc:date>2016-10-27T19:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Group by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197081#M878249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I wouldn't use Sum around the aggr() function if I plan to use NODISTINCT, So as long as you are not looking to get a total (which in case of straight table can be achieved using Sum of Rows under Total mode, I will always get the same result for row wise data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142291_Capture.PNG" style="height: 199px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No are these two functions different? Yes.&lt;/P&gt;&lt;P&gt;Do they have different purposes? Yes&lt;/P&gt;&lt;P&gt;Can one replace the others? Not always, but in this case it can. Also, I would suggest to use TOTAL over NODISTINCT for this particular case &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 20:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197081#M878249</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-27T20:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Group by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197082#M878250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny,&lt;/P&gt;&lt;P&gt;I agree with you. But when Set Analysis comes in play, things become bit complicated. &lt;/P&gt;&lt;P&gt;Quoted &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&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;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The set analysis expression in your inner aggregation function does not define the set of possible values for the AGGR dimension fields. &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;If you need to modify this set (i.e. you want a different set than defined by the selections), you need to use a second set expression in the outer aggregation function.&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I always prefer to wrap AGGR with the appropriate Aggregate Function (Most of the cases the Inner aggregate function)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This gives a greater flexibility and accurate results when we amend the expressions with set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In short, I will never prefer to use the AGGR function without wrapping up the aggregate function&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jayant&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 22:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197082#M878250</guid>
      <dc:creator>jayanttibhe</dc:creator>
      <dc:date>2016-10-27T22:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Group by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197083#M878251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then why only wrap with Sum my friend? Why not Only or Avg or Min or Max? What made you choose Sum?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 23:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-dimension/m-p/1197083#M878251</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-27T23:28:21Z</dc:date>
    </item>
  </channel>
</rss>

