<?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: Calculation with filtered data range in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculation-with-filtered-data-range/m-p/1664867#M50021</link>
    <description>&lt;P&gt;I'm not sure I understand properly what you are trying to do. Are you trying to get an average for the 3 most recent months per dock date yearmonth, or are you after a sliding type average regardless of the dock date?&lt;/P&gt;&lt;P&gt;This sounds like something RangeAvg would be good for, something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rangeavg(above(sum([Avg Yield Rate]),1,3))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This will give you a sliding average result, I've used above for the 3 most recent records, but depending on your sort order you can change that to Below or whatever is appropriate.&lt;/P&gt;&lt;P&gt;Hope that helps somewhat.&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2020 04:02:49 GMT</pubDate>
    <dc:creator>Rodj</dc:creator>
    <dc:date>2020-01-13T04:02:49Z</dc:date>
    <item>
      <title>Calculation with filtered data range</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-with-filtered-data-range/m-p/1664863#M50020</link>
      <description>&lt;P&gt;How to create a column where the expression of the column will be to only be average of the past 3 month avg yield rate (billing month)&amp;nbsp; from the dock date for example if the dock date is 2020 Jan than the data use to calculate will be (0.60+0.66+0.68)/3&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26732i1E6E513FC8ADACC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-with-filtered-data-range/m-p/1664863#M50020</guid>
      <dc:creator>chaiwaykeat</dc:creator>
      <dc:date>2021-12-20T21:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation with filtered data range</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-with-filtered-data-range/m-p/1664867#M50021</link>
      <description>&lt;P&gt;I'm not sure I understand properly what you are trying to do. Are you trying to get an average for the 3 most recent months per dock date yearmonth, or are you after a sliding type average regardless of the dock date?&lt;/P&gt;&lt;P&gt;This sounds like something RangeAvg would be good for, something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rangeavg(above(sum([Avg Yield Rate]),1,3))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This will give you a sliding average result, I've used above for the 3 most recent records, but depending on your sort order you can change that to Below or whatever is appropriate.&lt;/P&gt;&lt;P&gt;Hope that helps somewhat.&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 04:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-with-filtered-data-range/m-p/1664867#M50021</guid>
      <dc:creator>Rodj</dc:creator>
      <dc:date>2020-01-13T04:02:49Z</dc:date>
    </item>
  </channel>
</rss>

