<?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: Generating last 24 MOnths from today in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Generating-last-24-MOnths-from-today/m-p/1561569#M40885</link>
    <description>vLookbackLength = (month(today()))+24;&lt;BR /&gt;&lt;BR /&gt;For i = -$(vLookbackLength) to -1&lt;BR /&gt;Trace $(i);&lt;BR /&gt;Next i&lt;BR /&gt;Will trace -27 to -1 as Month(today()) =3 (March).&lt;BR /&gt;&lt;BR /&gt;Try this instead&lt;BR /&gt;For j = 0 to 24 //or 23 depending on if you include current month as one of the 24 months&lt;BR /&gt;Let vPeriod = MonthName(today()-$(j));&lt;BR /&gt;Trace $(vPeriod);&lt;BR /&gt;Next&lt;BR /&gt;&lt;BR /&gt;It should trace all moths from the current to February 2018.</description>
    <pubDate>Tue, 26 Mar 2019 19:01:16 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2019-03-26T19:01:16Z</dc:date>
    <item>
      <title>Generating last 24 MOnths from today</title>
      <link>https://community.qlik.com/t5/App-Development/Generating-last-24-MOnths-from-today/m-p/1561543#M40882</link>
      <description>&lt;P&gt;I need to show the last 24 months data. I have defined a variable below&amp;nbsp; and doing a loop&lt;/P&gt;&lt;P&gt;Let vLookbackLength = (month(today()))+24;&lt;/P&gt;&lt;P&gt;For i = -$(vLookbackLength) to -1&lt;/P&gt;&lt;P&gt;But its not giving me&amp;nbsp; the right number of months . What Am I missing here ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 18:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Generating-last-24-MOnths-from-today/m-p/1561543#M40882</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2019-03-26T18:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generating last 24 MOnths from today</title>
      <link>https://community.qlik.com/t5/App-Development/Generating-last-24-MOnths-from-today/m-p/1561569#M40885</link>
      <description>vLookbackLength = (month(today()))+24;&lt;BR /&gt;&lt;BR /&gt;For i = -$(vLookbackLength) to -1&lt;BR /&gt;Trace $(i);&lt;BR /&gt;Next i&lt;BR /&gt;Will trace -27 to -1 as Month(today()) =3 (March).&lt;BR /&gt;&lt;BR /&gt;Try this instead&lt;BR /&gt;For j = 0 to 24 //or 23 depending on if you include current month as one of the 24 months&lt;BR /&gt;Let vPeriod = MonthName(today()-$(j));&lt;BR /&gt;Trace $(vPeriod);&lt;BR /&gt;Next&lt;BR /&gt;&lt;BR /&gt;It should trace all moths from the current to February 2018.</description>
      <pubDate>Tue, 26 Mar 2019 19:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Generating-last-24-MOnths-from-today/m-p/1561569#M40885</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-26T19:01:16Z</dc:date>
    </item>
  </channel>
</rss>

