<?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: month in text object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/month-in-text-object/m-p/1557873#M441033</link>
    <description>&lt;P&gt;You should rather use date field to get the previous month like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Month(&lt;STRONG&gt;AddMonths&lt;/STRONG&gt;(max(&lt;STRONG&gt;as_month&lt;/STRONG&gt;), -1) )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;This way, you could even get previous month from last year. However, if you use only month field, you might not easily get Dec when you are in Jan.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 12:50:42 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2019-03-18T12:50:42Z</dc:date>
    <item>
      <title>month in text object</title>
      <link>https://community.qlik.com/t5/QlikView/month-in-text-object/m-p/1557870#M441032</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a month field as_month in database and the format in database is 01-jan-2019 etc etc&lt;/P&gt;&lt;P&gt;so i am tring to extract previous month&amp;nbsp;&lt;/P&gt;&lt;P&gt;i did this in script&amp;nbsp;&lt;/P&gt;&lt;P&gt;Month(as_month) as Month_N&lt;/P&gt;&lt;P&gt;and in text box object&amp;nbsp;&lt;/P&gt;&lt;P&gt;i did this&amp;nbsp;&lt;/P&gt;&lt;P&gt;max(Month_N) -1&amp;nbsp;&lt;/P&gt;&lt;P&gt;so when i select jan i did not get dec .. i get sep&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how i resolve this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 12:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-in-text-object/m-p/1557870#M441032</guid>
      <dc:creator>capriconuser</dc:creator>
      <dc:date>2019-03-18T12:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: month in text object</title>
      <link>https://community.qlik.com/t5/QlikView/month-in-text-object/m-p/1557873#M441033</link>
      <description>&lt;P&gt;You should rather use date field to get the previous month like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Month(&lt;STRONG&gt;AddMonths&lt;/STRONG&gt;(max(&lt;STRONG&gt;as_month&lt;/STRONG&gt;), -1) )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;This way, you could even get previous month from last year. However, if you use only month field, you might not easily get Dec when you are in Jan.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 12:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-in-text-object/m-p/1557873#M441033</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-03-18T12:50:42Z</dc:date>
    </item>
  </channel>
</rss>

