<?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 Need help with the expression for calculating average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-the-expression-for-calculating-average/m-p/330147#M492439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have year 2011, 2012,2013, but this is fiscal year data ( 2011-2012), (2012-2013)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i need to calculate the 2 yr avergae for a selected week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(disctinct (year) =3&amp;nbsp; but i need 2 here if i subtact the vaule using -1 then if user selects single year whole vaule is 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to write a expression for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need a expression some what like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum( max( week) + sum( max(week-52))/count(max(week) + count(max(week-52))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; here (week-52) is the previous week but count(max(week) is showing null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2012 21:03:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-02T21:03:56Z</dc:date>
    <item>
      <title>Need help with the expression for calculating average</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-the-expression-for-calculating-average/m-p/330147#M492439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have year 2011, 2012,2013, but this is fiscal year data ( 2011-2012), (2012-2013)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i need to calculate the 2 yr avergae for a selected week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(disctinct (year) =3&amp;nbsp; but i need 2 here if i subtact the vaule using -1 then if user selects single year whole vaule is 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to write a expression for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need a expression some what like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum( max( week) + sum( max(week-52))/count(max(week) + count(max(week-52))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; here (week-52) is the previous week but count(max(week) is showing null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 21:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-the-expression-for-calculating-average/m-p/330147#M492439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-02T21:03:56Z</dc:date>
    </item>
  </channel>
</rss>

