<?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: Formula for Previous Month Number in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Formula-for-Previous-Month-Number/m-p/1056869#M16832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Month(AddMonths(MakeDate(Year(Today(), Date#(&lt;SPAN style="color: #ff0000;"&gt;Month&lt;/SPAN&gt;, 'MMM')), -&lt;SPAN style="color: #ff0000;"&gt;n&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace &lt;STRONG&gt;n&lt;/STRONG&gt; with the number of months you wish to go back and &lt;STRONG&gt;Month&lt;/STRONG&gt; with whichever month you plan to start with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 May 2016 15:46:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-02T15:46:39Z</dc:date>
    <item>
      <title>Formula for Previous Month Number</title>
      <link>https://community.qlik.com/t5/App-Development/Formula-for-Previous-Month-Number/m-p/1056868#M16831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to come up with a formula/function that returns a month number that is n months prior to a given month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My function should have two arguments: &lt;EM&gt;monthnum&lt;/EM&gt; and&lt;EM&gt; n &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;f(2,2)=12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; the month two months before Feb. is Dec.&lt;/P&gt;&lt;P&gt;f(4,3)=1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; the month three months before Apr.. is Jan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 15:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Formula-for-Previous-Month-Number/m-p/1056868#M16831</guid>
      <dc:creator />
      <dc:date>2016-05-02T15:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Formula for Previous Month Number</title>
      <link>https://community.qlik.com/t5/App-Development/Formula-for-Previous-Month-Number/m-p/1056869#M16832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Month(AddMonths(MakeDate(Year(Today(), Date#(&lt;SPAN style="color: #ff0000;"&gt;Month&lt;/SPAN&gt;, 'MMM')), -&lt;SPAN style="color: #ff0000;"&gt;n&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace &lt;STRONG&gt;n&lt;/STRONG&gt; with the number of months you wish to go back and &lt;STRONG&gt;Month&lt;/STRONG&gt; with whichever month you plan to start with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 15:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Formula-for-Previous-Month-Number/m-p/1056869#M16832</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-02T15:46:39Z</dc:date>
    </item>
  </channel>
</rss>

