<?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: Creating a prior Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-prior-Month/m-p/445081#M166018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just subtracting 1 from &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;FiscalMthRelNum should do the trick:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableX:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;FiscalMthRelNum,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;FiscalMthRelNum&lt;/SPAN&gt; - 1 as &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;PreviousFiscalMthRelNum,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;from ...etc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Just make sure &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;FiscalMthRelNum is a number. If necessary make it one first: num#(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;FiscalMthRelNum)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2013 18:51:13 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-01-22T18:51:13Z</dc:date>
    <item>
      <title>Creating a prior Month</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-prior-Month/m-p/445080#M166017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a previous month in my script.&amp;nbsp; I have a field that is "FiscalMthRelNum" that gives a number value (ex, 303 = Dec 2012).&amp;nbsp; I'd like to create a PreviousFiscalMthRelNum that would return the value "302" with the record for Dec 2012.&amp;nbsp; The "302" would indicate the previous month of Nov 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp; Again, I'm trying to create this in the script, just not sure how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 17:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-prior-Month/m-p/445080#M166017</guid>
      <dc:creator />
      <dc:date>2013-01-22T17:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a prior Month</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-prior-Month/m-p/445081#M166018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just subtracting 1 from &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;FiscalMthRelNum should do the trick:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableX:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;FiscalMthRelNum,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;FiscalMthRelNum&lt;/SPAN&gt; - 1 as &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;PreviousFiscalMthRelNum,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;from ...etc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Just make sure &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;FiscalMthRelNum is a number. If necessary make it one first: num#(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;FiscalMthRelNum)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 18:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-prior-Month/m-p/445081#M166018</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-22T18:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a prior Month</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-prior-Month/m-p/445082#M166019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're using dates that were formatted by QlikView and each number represents 1 day rather than 1 month, I've found the AddMonths(Date,Offset) function helpful.&amp;nbsp; So in your example, if you wanted previous month, you would put the date in the first part of the expression and the offset would be -1.&amp;nbsp; But if you're generating you're own numbers for the months, then this may be overkill.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 18:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-prior-Month/m-p/445082#M166019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-22T18:56:33Z</dc:date>
    </item>
  </channel>
</rss>

