<?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 date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/date-range/m-p/225319#M77638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following, in my script.&lt;/P&gt;&lt;P&gt;DATE#(SUBFIELD(Calendar_Year_Month, ' ', 1)&amp;amp;' '&amp;amp;Calendar_Year,'MMM YYYY') as MONTH_YEAR,&lt;/P&gt;&lt;P&gt;then in Trigger, i have the following, works perfectly for the date range.&lt;/P&gt;&lt;P&gt;='&amp;gt;'&amp;amp;DATE(ADDMONTHS(Today(),-13),'MMM/YYYY') &amp;amp; '&amp;lt;='&amp;amp;DATE(ADDMONTHS(Today(),-1),'MMM/YYYY'&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-4169_sourceID:4169" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then, for the following&lt;BR /&gt;&lt;BR /&gt;DATE#((capitalize(MONTH)&amp;amp;' '&amp;amp;YEAR),'MMM YYYY') as RollingTwelveMonthsAsOfMonthYear&lt;/P&gt;&lt;P&gt;It still works, but it's showing date instead of Month Year, and the date range is also wrong, it's always one month lesser.&lt;BR /&gt;how can i correct this like the above one just to show MMM YYYY ?&lt;/P&gt;&lt;P&gt;='&amp;gt;'&amp;amp;DATE#(ADDMONTHS(Today(),-13),'MMM/YYYY') &amp;amp; '&amp;lt;='&amp;amp;DATE#(ADDMONTHS(Today(),-1),'MMM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-4170_sourceID:4170" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2011 07:50:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-21T07:50:54Z</dc:date>
    <item>
      <title>date range</title>
      <link>https://community.qlik.com/t5/QlikView/date-range/m-p/225319#M77638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following, in my script.&lt;/P&gt;&lt;P&gt;DATE#(SUBFIELD(Calendar_Year_Month, ' ', 1)&amp;amp;' '&amp;amp;Calendar_Year,'MMM YYYY') as MONTH_YEAR,&lt;/P&gt;&lt;P&gt;then in Trigger, i have the following, works perfectly for the date range.&lt;/P&gt;&lt;P&gt;='&amp;gt;'&amp;amp;DATE(ADDMONTHS(Today(),-13),'MMM/YYYY') &amp;amp; '&amp;lt;='&amp;amp;DATE(ADDMONTHS(Today(),-1),'MMM/YYYY'&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-4169_sourceID:4169" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then, for the following&lt;BR /&gt;&lt;BR /&gt;DATE#((capitalize(MONTH)&amp;amp;' '&amp;amp;YEAR),'MMM YYYY') as RollingTwelveMonthsAsOfMonthYear&lt;/P&gt;&lt;P&gt;It still works, but it's showing date instead of Month Year, and the date range is also wrong, it's always one month lesser.&lt;BR /&gt;how can i correct this like the above one just to show MMM YYYY ?&lt;/P&gt;&lt;P&gt;='&amp;gt;'&amp;amp;DATE#(ADDMONTHS(Today(),-13),'MMM/YYYY') &amp;amp; '&amp;lt;='&amp;amp;DATE#(ADDMONTHS(Today(),-1),'MMM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-4170_sourceID:4170" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 07:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range/m-p/225319#M77638</guid>
      <dc:creator />
      <dc:date>2011-04-21T07:50:54Z</dc:date>
    </item>
    <item>
      <title>date range</title>
      <link>https://community.qlik.com/t5/QlikView/date-range/m-p/225320#M77639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well for the 2nd trigger you have date#( and the first one is date( so at first glance I would try changing that. You could also try to use dual and for the text paruse like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;dual(month(addmonths(today(),-13),'MMM/YYYY') &amp;amp; '/' &amp;amp; year(addmonths(today(),-13),'MMM/YYYY'), your expression here&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not what you mean by it's always 1 month lesser... if that's the case than use -12 instead of -13? I think I'm missing something for that part at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 16:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-range/m-p/225320#M77639</guid>
      <dc:creator />
      <dc:date>2011-04-21T16:55:54Z</dc:date>
    </item>
  </channel>
</rss>

