<?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 Average Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384594#M143663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently have an expression taking the sum of all weeks in the set "WeekofYear". I want to rewrite this expression to take the average of all weeks in the quarter except the most current week which is defined by the variable&lt;SPAN style="color: #000000;"&gt; &lt;EM&gt;$(vMaxWeek).&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Avg &lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Source Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'RACE_REV_EST'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[WeekOfYear]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NAT_AMT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) / &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vScaleM) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2012 17:18:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-05T17:18:11Z</dc:date>
    <item>
      <title>Average Function</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384594#M143663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently have an expression taking the sum of all weeks in the set "WeekofYear". I want to rewrite this expression to take the average of all weeks in the quarter except the most current week which is defined by the variable&lt;SPAN style="color: #000000;"&gt; &lt;EM&gt;$(vMaxWeek).&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Avg &lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Source Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'RACE_REV_EST'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[WeekOfYear]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NAT_AMT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) / &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vScaleM) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 17:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384594#M143663</guid>
      <dc:creator />
      <dc:date>2012-09-05T17:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Average Function</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384595#M143664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Avg&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;[Source Type]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;={'RACE_REV_EST'}, &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;[WeekOfYear]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; ={"&amp;lt;&amp;gt;$(vMaxWeek)"} &amp;gt;}-{&amp;lt;&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;NAT_AMT&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;) / &lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;EM style="font-size: 8pt; color: #808080;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;$(vScaleM)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 17:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384595#M143664</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-09-05T17:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Average Function</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384596#M143665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. I tried your expression but it's not producing a number. QlikView is having problems with the last part of the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style=": ; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;&amp;gt;} NAT_AMT) / &lt;/P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vScaleM) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;STRONG&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 17:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384596#M143665</guid>
      <dc:creator />
      <dc:date>2012-09-05T17:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Average Function</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384597#M143666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops! Sorry - I meant to remove that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Avg&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #800000;"&gt;[Source Type]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt;"&gt;={'RACE_REV_EST'}, &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #800000;"&gt;[WeekOfYear]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt;"&gt; ={"&amp;lt;&amp;gt;$(vMaxWeek)"} &amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #800000;"&gt;NAT_AMT&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt;"&gt;) / &lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9;"&gt;&lt;EM style="font-size: 8pt; color: #808080;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;$(vScaleM)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 17:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384597#M143666</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-09-05T17:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Average Function</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384598#M143667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still no cigar. What if we tried to produce the average without trying to subtract out the most current week (&lt;EM&gt;$(vMaxWeek)&lt;/EM&gt;) from the calculation. Would that be easier to write?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 17:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384598#M143667</guid>
      <dc:creator />
      <dc:date>2012-09-05T17:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Average Function</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384599#M143668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your app please?&amp;nbsp; Would be much easier to help then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 18:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384599#M143668</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-09-05T18:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Average Function</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384600#M143669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avg({&amp;lt;[Source Type]={"RACE_REV_EST"}, [WeekOfYear] ={"=WeekOfYear&amp;lt;&amp;gt;$(vMaxWeek)"} &amp;gt;}&amp;nbsp; NAT_AMT) / $(vScaleM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the syntax $(vMaxWeek) depends on what is stored in this variable (expression with or without =).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 18:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Function/m-p/384600#M143669</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-05T18:12:20Z</dc:date>
    </item>
  </channel>
</rss>

