<?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 RangeAvg to be calculated for a column based on a range determined by a value in another column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RangeAvg-to-be-calculated-for-a-column-based-on-a-range/m-p/1685681#M450368</link>
    <description>&lt;P&gt;I have a Shipment Count chart table consisting of the dimensions [Day Month], [year] and the expression [Count] which is a count of individual shipments for each [Day Month] (eg. "25 Feb"") and [year] (specifically 2019 and then 2020). I have just added a new expression "RangeAvg (Above(Count,0,RowNo()))" which does a RangeAvg for all the values in the [Count] field. For the first [Count] field value (top row), the RangeAvg will equal the [Count] field value, but starting with the second [Count] field, the RangeAvg does an average of that field and all the ones above it.&lt;/P&gt;&lt;P&gt;Here is my question: Since my data runs across 2 years (2019 and 2020) and does NOT include all months in each year (its only 18 Feb to 17 Mar for each year), I want the RangeAvg function to restart from zero once it crosses from a row with year=2019 to a row with year=2020. So in a sense I want to group my data by year with regard to RangeAvg.&lt;/P&gt;&lt;P&gt;How can I accomplish this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:01:47 GMT</pubDate>
    <dc:creator>Jason1</dc:creator>
    <dc:date>2024-11-16T01:01:47Z</dc:date>
    <item>
      <title>RangeAvg to be calculated for a column based on a range determined by a value in another column</title>
      <link>https://community.qlik.com/t5/QlikView/RangeAvg-to-be-calculated-for-a-column-based-on-a-range/m-p/1685681#M450368</link>
      <description>&lt;P&gt;I have a Shipment Count chart table consisting of the dimensions [Day Month], [year] and the expression [Count] which is a count of individual shipments for each [Day Month] (eg. "25 Feb"") and [year] (specifically 2019 and then 2020). I have just added a new expression "RangeAvg (Above(Count,0,RowNo()))" which does a RangeAvg for all the values in the [Count] field. For the first [Count] field value (top row), the RangeAvg will equal the [Count] field value, but starting with the second [Count] field, the RangeAvg does an average of that field and all the ones above it.&lt;/P&gt;&lt;P&gt;Here is my question: Since my data runs across 2 years (2019 and 2020) and does NOT include all months in each year (its only 18 Feb to 17 Mar for each year), I want the RangeAvg function to restart from zero once it crosses from a row with year=2019 to a row with year=2020. So in a sense I want to group my data by year with regard to RangeAvg.&lt;/P&gt;&lt;P&gt;How can I accomplish this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeAvg-to-be-calculated-for-a-column-based-on-a-range/m-p/1685681#M450368</guid>
      <dc:creator>Jason1</dc:creator>
      <dc:date>2024-11-16T01:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: RangeAvg to be calculated for a column based on a range determined by a value in another column</title>
      <link>https://community.qlik.com/t5/QlikView/RangeAvg-to-be-calculated-for-a-column-based-on-a-range/m-p/1685689#M450369</link>
      <description>&lt;P&gt;Seems like it is already resetting, isn't it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 548px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30221i8BCB25A0DFD9B537/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If it was not resetting, you would have seen a different number for 18Feb and not 106 which is equal to the count of 106, right?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 12:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeAvg-to-be-calculated-for-a-column-based-on-a-range/m-p/1685689#M450369</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-18T12:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: RangeAvg to be calculated for a column based on a range determined by a value in another column</title>
      <link>https://community.qlik.com/t5/QlikView/RangeAvg-to-be-calculated-for-a-column-based-on-a-range/m-p/1685699#M450370</link>
      <description>&lt;P&gt;Thanks for pointing that out! I did just see it myself and was about to post.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 13:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeAvg-to-be-calculated-for-a-column-based-on-a-range/m-p/1685699#M450370</guid>
      <dc:creator>Jason1</dc:creator>
      <dc:date>2020-03-18T13:03:48Z</dc:date>
    </item>
  </channel>
</rss>

