<?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 function to simply group by in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760410#M1038344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;we use below expression to aggr on two keys:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Value] - AGGR(Min(TOTAL &amp;lt;ITEMCODE&amp;gt; [Value]), [ITEMCODE],Fieldname)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;replace fieldname with your dimension/field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Reg&lt;/SPAN&gt;ards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2014 20:11:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-18T20:11:15Z</dc:date>
    <item>
      <title>Aggr function to simply group by</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760406#M1038340</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;Is there a function which simply groups by a field by a key. Like I want to &lt;SPAN style="text-decoration: underline;"&gt;group by&lt;/SPAN&gt; sales by item code.&lt;/P&gt;&lt;P&gt;I don't want to sort out min/max value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I want to do something like [Value] - AGGR(Min([Value]), [ITEMCODE])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all the values corresponding to an item must display 'x' units less if 'x' is the minimum sales value for that item.&lt;/P&gt;&lt;P&gt;How do I make sure that the [Value] field is grouped by the item code, because if I just use the above simply, my expression errors out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to achieve this in the front end and not the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 12:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760406#M1038340</guid>
      <dc:creator />
      <dc:date>2014-12-18T12:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function to simply group by</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760407#M1038341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Value] - AGGR(Min(TOTAL &amp;lt;ITEMCODE&amp;gt; [Value]), [ITEMCODE])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 12:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760407#M1038341</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-12-18T12:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function to simply group by</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760408#M1038342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you so much Manish, Could you suggest what would be the expression when we have two keys to aggregate upon?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 17:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760408#M1038342</guid>
      <dc:creator />
      <dc:date>2014-12-18T17:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function to simply group by</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760409#M1038343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you require to display this in a chart?&lt;/P&gt;&lt;P&gt;What are your dimensions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 18:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760409#M1038343</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-12-18T18:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function to simply group by</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760410#M1038344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;we use below expression to aggr on two keys:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Value] - AGGR(Min(TOTAL &amp;lt;ITEMCODE&amp;gt; [Value]), [ITEMCODE],Fieldname)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;replace fieldname with your dimension/field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Reg&lt;/SPAN&gt;ards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 20:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760410#M1038344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-18T20:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function to simply group by</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760411#M1038345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, in a chart and this expression is itself my calculated dimension.. along with itemcode as the second dimension..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 05:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-to-simply-group-by/m-p/760411#M1038345</guid>
      <dc:creator />
      <dc:date>2014-12-19T05:03:06Z</dc:date>
    </item>
  </channel>
</rss>

