<?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 Retrieve back data based on current filter criteria in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Retrieve-back-data-based-on-current-filter-criteria/m-p/1574561#M41857</link>
    <description>&lt;P&gt;Currently I have a Year filter and a Month filter. No dates are used. Just year and month.&amp;nbsp;&lt;BR /&gt;When a user selects a Year and then selects a Month (eg. 2019, 04), the data that must be displayed needs to be for the current selection and 13 months back (so based on my example I want data from 2018, 03 until 2019, 04 ).&lt;BR /&gt;What I am trying to do is show 3month, 6month and 12month sales and budget averages in a bar graph.&lt;/P&gt;&lt;P&gt;I currently have this which is&amp;nbsp; not working. (YearPeriodId is a unquie key given to my Year and Month combination)&lt;BR /&gt;= (sum({$&amp;lt;YearPeriodId={"$(=Max(YearPeriodId)-1)"}&amp;gt;}Quantity) +sum({$&amp;lt;YearPeriodId={"$(=Max(YearPeriodId)-2)"}&amp;gt;}Quantity) + sum({$&amp;lt;YearPeriodId={"$(=Max(YearPeriodId)-3)"}&amp;gt;}Quantity)) /3&lt;BR /&gt;&lt;BR /&gt;I have also tried using variables. Also not working.&lt;BR /&gt;sum({&amp;lt;MonthNum={"&amp;gt;=$(=vMaxMonth,-3)) &amp;lt;=$(=vMaxMonth)"}&amp;gt;} Value)&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 20:05:52 GMT</pubDate>
    <dc:creator>candacemj</dc:creator>
    <dc:date>2021-12-21T20:05:52Z</dc:date>
    <item>
      <title>Retrieve back data based on current filter criteria</title>
      <link>https://community.qlik.com/t5/App-Development/Retrieve-back-data-based-on-current-filter-criteria/m-p/1574561#M41857</link>
      <description>&lt;P&gt;Currently I have a Year filter and a Month filter. No dates are used. Just year and month.&amp;nbsp;&lt;BR /&gt;When a user selects a Year and then selects a Month (eg. 2019, 04), the data that must be displayed needs to be for the current selection and 13 months back (so based on my example I want data from 2018, 03 until 2019, 04 ).&lt;BR /&gt;What I am trying to do is show 3month, 6month and 12month sales and budget averages in a bar graph.&lt;/P&gt;&lt;P&gt;I currently have this which is&amp;nbsp; not working. (YearPeriodId is a unquie key given to my Year and Month combination)&lt;BR /&gt;= (sum({$&amp;lt;YearPeriodId={"$(=Max(YearPeriodId)-1)"}&amp;gt;}Quantity) +sum({$&amp;lt;YearPeriodId={"$(=Max(YearPeriodId)-2)"}&amp;gt;}Quantity) + sum({$&amp;lt;YearPeriodId={"$(=Max(YearPeriodId)-3)"}&amp;gt;}Quantity)) /3&lt;BR /&gt;&lt;BR /&gt;I have also tried using variables. Also not working.&lt;BR /&gt;sum({&amp;lt;MonthNum={"&amp;gt;=$(=vMaxMonth,-3)) &amp;lt;=$(=vMaxMonth)"}&amp;gt;} Value)&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 20:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retrieve-back-data-based-on-current-filter-criteria/m-p/1574561#M41857</guid>
      <dc:creator>candacemj</dc:creator>
      <dc:date>2021-12-21T20:05:52Z</dc:date>
    </item>
  </channel>
</rss>

