<?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: Set Analysis Date Period in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1862744#M71180</link>
    <description>&lt;P&gt;is period a date field formatted like YYYYMM ?&lt;/P&gt;
&lt;P&gt;vCurrentPeriod:&amp;nbsp; =max(PERIOD)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;YEAR=, MONTH=, PERIOD={"&amp;gt;=$(date(addmonths(date#('$(vCurrentPeriod)','YYYYMM'),-12),'YYYYMM')) and and &amp;lt;= $(vCurrentPeriod) "} &amp;gt;} SALES )&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Nov 2021 17:44:30 GMT</pubDate>
    <dc:creator>stevejoyce</dc:creator>
    <dc:date>2021-11-23T17:44:30Z</dc:date>
    <item>
      <title>Set Analysis Date Period</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1862718#M71177</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create a set analysis calculation which includes a date period. I want to see the last 12 date periods combined in one sum. The PERIOD field is just a combination of the YEAR &amp;amp; MONTH.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created a variable (vCurrentPeriod) to house the Current PERIOD so that is a rolling calculation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;YEAR=, MONTH=, PERIOD={‘&amp;gt;=$(=vCurrentPeriod -11))&amp;lt;=$(=vCurrentPeriod)’}&amp;gt;} SALES )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone see where I am going wrong?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 16:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1862718#M71177</guid>
      <dc:creator>MAPSF1</dc:creator>
      <dc:date>2021-11-23T16:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Date Period</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1862744#M71180</link>
      <description>&lt;P&gt;is period a date field formatted like YYYYMM ?&lt;/P&gt;
&lt;P&gt;vCurrentPeriod:&amp;nbsp; =max(PERIOD)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;YEAR=, MONTH=, PERIOD={"&amp;gt;=$(date(addmonths(date#('$(vCurrentPeriod)','YYYYMM'),-12),'YYYYMM')) and and &amp;lt;= $(vCurrentPeriod) "} &amp;gt;} SALES )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 17:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1862744#M71180</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-11-23T17:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Date Period</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1862957#M71209</link>
      <description>&lt;P&gt;Yeah, the datefield is YYYYMM.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 09:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1862957#M71209</guid>
      <dc:creator>MAPSF1</dc:creator>
      <dc:date>2021-11-24T09:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Date Period</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1863027#M71216</link>
      <description>&lt;P&gt;Ok, try what i posted.&lt;/P&gt;
&lt;P&gt;vCurrentPeriod:&amp;nbsp; =max(PERIOD)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;YEAR=, MONTH=, PERIOD={"&amp;gt;=$(date(addmonths(date#('$(vCurrentPeriod)','YYYYMM'),-12),'YYYYMM')) and and &amp;lt;= $(vCurrentPeriod) "} &amp;gt;} SALES )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 11:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1863027#M71216</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-11-24T11:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Date Period</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1863034#M71219</link>
      <description>&lt;P&gt;thanks for the reply but there seems to be an error in the code? should there be a double and, and extra " marks?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 11:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1863034#M71219</guid>
      <dc:creator>MAPSF1</dc:creator>
      <dc:date>2021-11-24T11:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Date Period</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1863253#M71230</link>
      <description>&lt;P&gt;quotes are fine.&amp;nbsp; i have an extract and, and a space.&amp;nbsp; try this.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;YEAR=, MONTH=, PERIOD={"&amp;gt;=$(date(addmonths(date#('$(vCurrentPeriod)','YYYYMM'),-12),'YYYYMM')) and &amp;lt;=$(vCurrentPeriod) "} &amp;gt;} SALES )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 17:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Date-Period/m-p/1863253#M71230</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-11-24T17:29:11Z</dc:date>
    </item>
  </channel>
</rss>

