<?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: Avg in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Avg/m-p/775059#M665480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about an expression something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum ( Order ) / sum ( TOTAL Order )&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Dec 2014 15:32:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-22T15:32:16Z</dc:date>
    <item>
      <title>Avg</title>
      <link>https://community.qlik.com/t5/QlikView/Avg/m-p/775058#M665479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In my application i'm trying to take an average from a calculated value (relative number of orders in the week). For this i'm trying to use the following expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg(aggr(Sum(Order)/Sum(TOTAL Order),Store))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which will aggregate the percentage of orders in the week by the store and take the average from this values. But it's not working, could somebody help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the attachment i've made and example of what i need (The average of the percentage from each day of the week on each week of the month of both stores). Doing it by hand it shold be showing 63% (fisrt store, monday of the first week) + 55% (Second store, monday, first week) /2 = 59%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate the help.&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 15:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg/m-p/775058#M665479</guid>
      <dc:creator />
      <dc:date>2014-12-22T15:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Avg</title>
      <link>https://community.qlik.com/t5/QlikView/Avg/m-p/775059#M665480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about an expression something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum ( Order ) / sum ( TOTAL Order )&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 15:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg/m-p/775059#M665480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-22T15:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Avg</title>
      <link>https://community.qlik.com/t5/QlikView/Avg/m-p/775060#M665481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=avg(TOTAL aggr(Sum(Order)/Sum(TOTAL Order),Store))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 15:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg/m-p/775060#M665481</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-12-22T15:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Avg</title>
      <link>https://community.qlik.com/t5/QlikView/Avg/m-p/775061#M665482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you do an example for me? I tried but it didn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 15:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg/m-p/775061#M665482</guid>
      <dc:creator />
      <dc:date>2014-12-22T15:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Avg</title>
      <link>https://community.qlik.com/t5/QlikView/Avg/m-p/775062#M665483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Store&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Order&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Store&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Order&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Store&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Order&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Store&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Order&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetPossibleCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;KR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 16:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg/m-p/775062#M665483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-22T16:13:59Z</dc:date>
    </item>
  </channel>
</rss>

