<?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 AW:MIN within a group, Average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MIN-within-a-group-Average/m-p/171438#M41436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you need to aggregate the Values by one or more dimension(s), something like:&lt;/P&gt;&lt;P&gt;Avg(AGGR(MIN({&amp;lt;[YEAR]={$(=maxstring([YEAR]))}&amp;gt;}[Price per unit]) ,Dimension1,Dimension2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2011 13:06:28 GMT</pubDate>
    <dc:creator>brenner_martina</dc:creator>
    <dc:date>2011-03-21T13:06:28Z</dc:date>
    <item>
      <title>MIN within a group, Average</title>
      <link>https://community.qlik.com/t5/QlikView/MIN-within-a-group-Average/m-p/171437#M41435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data looks like the following&lt;/P&gt;&lt;P&gt;Prod_Grp----prod_id------ date----------price&lt;/P&gt;&lt;P&gt;A---------------101 -----------15/1/2010---$9,99&lt;BR /&gt;A---------------101 -----------21/6/2010---$8,99&lt;BR /&gt;A---------------101 -----------22/12/2010--$10,99&lt;BR /&gt;A---------------102------------6/1/2010-----$7,49&lt;BR /&gt;B---------------103...ect&lt;/P&gt;&lt;P&gt;I want to know the &lt;STRONG&gt;average MINIMUM price on Prod_Grp level within a certain choosed period&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The minimum price on PROD_ID level was no problem for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({&amp;lt;[YEAR]={&lt;B&gt;&lt;I&gt;$(=maxstring([YEAR]))&lt;/I&gt;&lt;/B&gt;}&amp;gt;}[Price per unit])&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But know I need the average MINIMUM price on Prod_Grp level so in my example, when Year is set to 2010:&lt;/P&gt;&lt;P&gt;A: (8,99+7,49)/2 = 8,24&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 12:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MIN-within-a-group-Average/m-p/171437#M41435</guid>
      <dc:creator />
      <dc:date>2011-03-21T12:53:31Z</dc:date>
    </item>
    <item>
      <title>AW:MIN within a group, Average</title>
      <link>https://community.qlik.com/t5/QlikView/MIN-within-a-group-Average/m-p/171438#M41436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you need to aggregate the Values by one or more dimension(s), something like:&lt;/P&gt;&lt;P&gt;Avg(AGGR(MIN({&amp;lt;[YEAR]={$(=maxstring([YEAR]))}&amp;gt;}[Price per unit]) ,Dimension1,Dimension2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 13:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MIN-within-a-group-Average/m-p/171438#M41436</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-03-21T13:06:28Z</dc:date>
    </item>
    <item>
      <title>AW:MIN within a group, Average</title>
      <link>https://community.qlik.com/t5/QlikView/MIN-within-a-group-Average/m-p/171439#M41437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the help of the above I've created the following formula&lt;/P&gt;&lt;P&gt;Avg(Aggr(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;MIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;({&amp;lt;[year]={&lt;B&gt;&lt;I&gt;$(=maxstring([year]))&lt;/I&gt;&lt;/B&gt;},[period]={&lt;B&gt;&lt;I&gt;$(=maxstring([period]))&lt;/I&gt;&lt;/B&gt;}&amp;gt;}[Price per unit])&lt;BR /&gt;,[Prod_Id] ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now want to make this function a little bit more dynamic so it takes in account the dimensions which are choosen to be displayed in the staright/pivot table.&lt;/P&gt;&lt;P&gt;Sometimes this can be "Channel" but when drill throughed it can be "Customer_group" (this one is below channel).&lt;BR /&gt;And MINIMUM Average price needs to be calculated accordingly (when drilled up to channel, per channel, for each prod_id&lt;BR /&gt;and when drilled down to Cust_grp, per cust_group for each prod_id).&lt;/P&gt;&lt;P&gt;How can this be done? is there something in the syntax like Dim1 , Dim2 which refers to the used dimensions in the straight/pivot table??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 08:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MIN-within-a-group-Average/m-p/171439#M41437</guid>
      <dc:creator />
      <dc:date>2011-03-22T08:23:08Z</dc:date>
    </item>
    <item>
      <title>AW:MIN within a group, Average</title>
      <link>https://community.qlik.com/t5/QlikView/MIN-within-a-group-Average/m-p/171440#M41438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm now experimenting with adding ALL POSSIBLE/RELEVANT dimensions adding to the AGRR() function, even if they are not used in the initial start straight/pivot table.&lt;/P&gt;&lt;P&gt;And then if drilled/up/down by user QV uses those dimension which are relevant.&lt;/P&gt;&lt;P&gt;It seems to work but not sure if this is the way to work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 09:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MIN-within-a-group-Average/m-p/171440#M41438</guid>
      <dc:creator />
      <dc:date>2011-03-22T09:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: AW:MIN within a group, Average</title>
      <link>https://community.qlik.com/t5/QlikView/MIN-within-a-group-Average/m-p/171441#M41439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No boss. i am getting the same sales value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want per unit and also for each part no. for eg. if i select IN880180, the maximum sales price per unit should be 102 and minimum should be Rs. 80. the average should be 91.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;likewise, it should compare the price per unit of all the shipments for each part no. and find out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 06:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MIN-within-a-group-Average/m-p/171441#M41439</guid>
      <dc:creator />
      <dc:date>2013-07-16T06:11:25Z</dc:date>
    </item>
  </channel>
</rss>

