<?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: Average Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-Calculation/m-p/1235384#M860929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aretha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your case of Avg.qvw,&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="color: gray; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;$(=Max(Year))&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;"&amp;lt;=$(=max(YearMonth))"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="color: gray; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;$(=Max(Year))&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;"&amp;lt;=$(=max(YearMonth))"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2017 09:44:27 GMT</pubDate>
    <dc:creator>girirajsinh</dc:creator>
    <dc:date>2017-01-12T09:44:27Z</dc:date>
    <item>
      <title>Average Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Calculation/m-p/1235381#M860926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have the monthly Sales data per PersonID like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="197"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="59"&gt;PersonID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="35"&gt;Year&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;YearMonth&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="39"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;201601&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;201602&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;201603&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;201604&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;201605&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;201606&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;201607&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;201608&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;201609&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;P1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;201610&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;How to calculate YTD Sales Average?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: sum(Sales)/count(distinct Month)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Calculation/m-p/1235381#M860926</guid>
      <dc:creator>arethaking</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Average Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Calculation/m-p/1235382#M860927</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;avg({&amp;lt;Year = {'$(=Max(Year))'}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 09:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Calculation/m-p/1235382#M860927</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-01-12T09:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Average Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Calculation/m-p/1235383#M860928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;avg({&amp;lt;YearMonth={"&amp;gt;=$(=YearStart(Max(YearMonth)))&amp;lt;=$(=Max(YearMonth))"}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 09:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Calculation/m-p/1235383#M860928</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2017-01-12T09:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Average Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Calculation/m-p/1235384#M860929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aretha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your case of Avg.qvw,&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="color: gray; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;$(=Max(Year))&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;"&amp;lt;=$(=max(YearMonth))"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="color: gray; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;$(=Max(Year))&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;"&amp;lt;=$(=max(YearMonth))"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 09:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Calculation/m-p/1235384#M860929</guid>
      <dc:creator>girirajsinh</dc:creator>
      <dc:date>2017-01-12T09:44:27Z</dc:date>
    </item>
  </channel>
</rss>

