<?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 &amp;quot;Total&amp;quot; aggr function help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/quot-Total-quot-aggr-function-help/m-p/174015#M42992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Am trying to capture an average price for a particular material across all sites. In the past, have used something similar to:&lt;/P&gt;&lt;P&gt;sum(total&amp;lt;Material&amp;gt;Euros/1000)&lt;BR /&gt;/&lt;BR /&gt;sum(total&amp;lt;Material&amp;gt;QtyKG/1000)&lt;/P&gt;&lt;P&gt;However, I would like to capture the average price for a particular period (and the period view, is defined by the user ie Annual, Quarter, Monthly). For this, I have used a variable. My formula then looks something similar to this:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;'$(zvarTimePeriod)' = {'$(=minstring($(zvarTimePeriod)))'}&amp;gt;} Euros)&lt;BR /&gt;/&lt;BR /&gt;sum({$&amp;lt;'$(zvarTimePeriod)' = {'$(=minstring($(zvarTimePeriod)))'}&amp;gt;} QtyKG)&lt;/P&gt;&lt;P&gt;The above works well, and defines an Average Price for earliest selcted period, but this is only at site/material level. I am trying to expand the above, so that it returns an average price across all sites. So technically, all I have to do is add the "Total" and "&amp;lt;Material&amp;gt;" into the above formula - although I am having some issues...&lt;/P&gt;&lt;P&gt;can anyone point me in the right direction please...&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2011 12:49:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-22T12:49:55Z</dc:date>
    <item>
      <title>"Total" aggr function help</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Total-quot-aggr-function-help/m-p/174015#M42992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Am trying to capture an average price for a particular material across all sites. In the past, have used something similar to:&lt;/P&gt;&lt;P&gt;sum(total&amp;lt;Material&amp;gt;Euros/1000)&lt;BR /&gt;/&lt;BR /&gt;sum(total&amp;lt;Material&amp;gt;QtyKG/1000)&lt;/P&gt;&lt;P&gt;However, I would like to capture the average price for a particular period (and the period view, is defined by the user ie Annual, Quarter, Monthly). For this, I have used a variable. My formula then looks something similar to this:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;'$(zvarTimePeriod)' = {'$(=minstring($(zvarTimePeriod)))'}&amp;gt;} Euros)&lt;BR /&gt;/&lt;BR /&gt;sum({$&amp;lt;'$(zvarTimePeriod)' = {'$(=minstring($(zvarTimePeriod)))'}&amp;gt;} QtyKG)&lt;/P&gt;&lt;P&gt;The above works well, and defines an Average Price for earliest selcted period, but this is only at site/material level. I am trying to expand the above, so that it returns an average price across all sites. So technically, all I have to do is add the "Total" and "&amp;lt;Material&amp;gt;" into the above formula - although I am having some issues...&lt;/P&gt;&lt;P&gt;can anyone point me in the right direction please...&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 12:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Total-quot-aggr-function-help/m-p/174015#M42992</guid>
      <dc:creator />
      <dc:date>2011-03-22T12:49:55Z</dc:date>
    </item>
    <item>
      <title>AW:"Total" aggr function help</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Total-quot-aggr-function-help/m-p/174016#M42993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this is the solution:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;'$(zvarTimePeriod)' = {'$(=minstring($(zvarTimePeriod)))'}&amp;gt;} Total &amp;lt;Material&amp;gt; Euros)&lt;BR /&gt;/&lt;BR /&gt;sum({$&amp;lt;'$(zvarTimePeriod)' = {'$(=minstring($(zvarTimePeriod)))'}&amp;gt;} Total &amp;lt;Material&amp;gt; QtyKG)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 13:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Total-quot-aggr-function-help/m-p/174016#M42993</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-03-22T13:14:11Z</dc:date>
    </item>
  </channel>
</rss>

