<?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: Get Previous Month from Today's date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580225#M1098927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF(Month(Date(YourDateField))-1=0,12,Month(Date(YourDateField))-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;=Subfield('$(MonthNames)',';',IF(Month(Date(YourDateField))-1=0,12,Month(Date(YourDateField))-1))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Apr 2014 09:05:21 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-04-30T09:05:21Z</dc:date>
    <item>
      <title>Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580220#M1098913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i can get Previous month from Current date as i need to generate QVD and use Month and Year as their filed using system date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kushal Thakral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 08:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580220#M1098913</guid>
      <dc:creator>kushalthakral</dc:creator>
      <dc:date>2014-04-30T08:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580221#M1098916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Month(Today())-1 as PreviousMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update : The above will give you month number.&lt;/P&gt;&lt;P&gt;If you want month number, use below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script &lt;/P&gt;&lt;P&gt;=Subfield('$(MonthNames)',';',Month(Today())-1) as PreviousMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in UI&lt;/P&gt;&lt;P&gt;=Subfield('$(MonthNames)',';',Month(Today())-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 08:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580221#M1098916</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-30T08:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580222#M1098919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Month(AddMonths(Today(),-1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 08:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580222#M1098919</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-04-30T08:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580223#M1098922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(Max(DateField))-1 as PreviousMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is mean for QVD generate and used Month Year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 08:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580223#M1098922</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-30T08:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580224#M1098924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manish,&lt;/P&gt;&lt;P&gt;If Month is January, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Month(Today())-1&lt;/SPAN&gt; is zero and you will get nothing from this expression&lt;/P&gt;&lt;P&gt;Subfield('$(MonthNames)',';',Month(Date#('01/01/2014','D/M/YYYY'))-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580224#M1098924</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-04-30T09:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580225#M1098927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF(Month(Date(YourDateField))-1=0,12,Month(Date(YourDateField))-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;=Subfield('$(MonthNames)',';',IF(Month(Date(YourDateField))-1=0,12,Month(Date(YourDateField))-1))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580225#M1098927</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-30T09:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580226#M1098928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have Date field so need to calculate Month and Year using system date&lt;/P&gt;&lt;P&gt;So can you help with the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kushal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580226#M1098928</guid>
      <dc:creator>kushalthakral</dc:creator>
      <dc:date>2014-04-30T09:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580227#M1098931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;IF(Month(Today())-1=0,12,Month(Today())-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;=Subfield('$(MonthNames)',';',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;IF(Month(Today())-1=0,12,Month(Today())-1)&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580227#M1098931</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-30T09:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580228#M1098932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Previous month&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Month(AddMonths(Today(),-1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Previous Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Year&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(AddMonths(Today(),-1))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Current Month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Month(Today())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Current Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Year(Today())&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580228#M1098932</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-04-30T09:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580229#M1098934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kushal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You try the following Syntax-:&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;MONTH={"&amp;gt;=$(=MIN(MONTH)-1)&amp;lt;=$(=MAX(MONTH)-1)"}&amp;gt;}FIELDNAME)&lt;/P&gt;&lt;P&gt;it definitely work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580229#M1098934</guid>
      <dc:creator />
      <dc:date>2014-04-30T09:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580230#M1098935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the attched file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580230#M1098935</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-04-30T09:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580231#M1098936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;NEWTABLE:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Month(AddMonths(Today(),-1))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PreviousMonth,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Year(AddMonths(Today(),-1))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PreviousYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;resident Orginal;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;store NEWTABLE into path\NEWTABLE.QVD;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580231#M1098936</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-04-30T09:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580232#M1098937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You ALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kushal Thakral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 10:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580232#M1098937</guid>
      <dc:creator>kushalthakral</dc:creator>
      <dc:date>2014-04-30T10:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get Previous Month from Today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580233#M1098938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a calendar which allows you to determine previous periods depending on dates using flags&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-6593"&gt;http://community.qlik.com/docs/DOC-6593&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;P&gt;QlikCentral.Com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 16:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Previous-Month-from-Today-s-date/m-p/580233#M1098938</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2014-05-27T16:07:53Z</dc:date>
    </item>
  </channel>
</rss>

