<?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 Current Month &amp; Previous Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052660#M353175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having some issues getting the Previous Month.&amp;nbsp; I have tried these as Variables and Expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;creating&amp;nbsp; a MONTH column from another field &lt;SPAN style="color: #800000; font-size: 13.3333px;"&gt;Incident Created Timestamp.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;date(MonthStart&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Incident Created Timestamp]&lt;/SPAN&gt;), 'MM-YYYY') as &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;) returns 01 - 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Previous Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;) &lt;SPAN style="color: #000000;"&gt;-1&lt;/SPAN&gt; returns 42369&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;-1)&lt;/SPAN&gt; returns 42369&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;) -1, 'MM-YYYY') &lt;SPAN style="color: #808080; font-size: 13.3333px;"&gt;returns 42369&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 13.3333px;"&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #0000ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt; -1), 'MM-YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 13.3333px;"&gt;returns 42369&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Mont&lt;/SPAN&gt;h -1, 'MM-YYYY') &lt;SPAN style="color: #808080; font-size: 13.3333px;"&gt;returns 42369&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2016 18:02:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-04T18:02:53Z</dc:date>
    <item>
      <title>Current Month &amp; Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052660#M353175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having some issues getting the Previous Month.&amp;nbsp; I have tried these as Variables and Expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;creating&amp;nbsp; a MONTH column from another field &lt;SPAN style="color: #800000; font-size: 13.3333px;"&gt;Incident Created Timestamp.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;date(MonthStart&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Incident Created Timestamp]&lt;/SPAN&gt;), 'MM-YYYY') as &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;) returns 01 - 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Previous Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;) &lt;SPAN style="color: #000000;"&gt;-1&lt;/SPAN&gt; returns 42369&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;-1)&lt;/SPAN&gt; returns 42369&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;) -1, 'MM-YYYY') &lt;SPAN style="color: #808080; font-size: 13.3333px;"&gt;returns 42369&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 13.3333px;"&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #0000ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt; -1), 'MM-YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 13.3333px;"&gt;returns 42369&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Mont&lt;/SPAN&gt;h -1, 'MM-YYYY') &lt;SPAN style="color: #808080; font-size: 13.3333px;"&gt;returns 42369&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 18:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052660#M353175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-04T18:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month &amp; Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052661#M353176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using AddMonths() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=AddMonths(&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;), -1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 18:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052661#M353176</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-04T18:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month &amp; Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052662#M353177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny T,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That got me closer (12/01/2015).&amp;nbsp; Is there a way to get it in "MM-YYYY" format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the next step I need is to COUNT the [Incident Identifier] based on the Variables that I created:&lt;BR /&gt;vCurrentMonth =Max(Month)&lt;/P&gt;&lt;P&gt;vPrevMonth =AddMonths(Max(Month), -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works when I use the exact Previous Month - =Num(Count({&amp;lt;Month={"12-2015"}&amp;gt;}[Incident Identifier]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns 0 - =Num(Count({&amp;lt;Month={"$(vPrevMonth)"}&amp;gt;}[Incident Identifier]))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This returns "error in set modifier ad hoc element list - =Num(Count({&amp;lt;Month={$(vPrevMonth)}&amp;gt;}[Incident Identifier]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 19:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052662#M353177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-04T19:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month &amp; Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052663#M353178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this for changing the date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Date(AddMonths(&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;), -1), 'MM-YYYY')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 19:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052663#M353178</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-04T19:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month &amp; Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052664#M353179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 19:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052664#M353179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-04T19:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month &amp; Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052665#M353180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 19:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052665#M353180</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-04T19:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month &amp; Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052666#M353181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The next step I need is to COUNT the [Incident Identifier] based on the Variables that I created:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;vCurrentMonth =Max(Month)&lt;/P&gt;&lt;P&gt;vPrevMonth =AddMonths(Max(Month), -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works when I use the exact Previous Month - =Num(Count({&amp;lt;Month={"12-2015"}&amp;gt;}[Incident Identifier]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns 0 - =Num(Count({&amp;lt;Month={"$(vPrevMonth)"}&amp;gt;}[Incident Identifier]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns "error in set modifier ad hoc element list - =Num(Count({&amp;lt;Month={$(vPrevMonth)}&amp;gt;}[Incident Identifier]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 21:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052666#M353181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-04T21:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month &amp; Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052667#M353182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is still isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 21:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052667#M353182</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-04T21:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month &amp; Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052668#M353183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you use a master calendar in your app?&amp;nbsp; For me, I prefer to create a master calendar, then have flags for current month, previous, etc.&amp;nbsp; Then use set analysis to create my measures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 21:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-Previous-Month/m-p/1052668#M353183</guid>
      <dc:creator>fcecconi</dc:creator>
      <dc:date>2016-02-04T21:24:23Z</dc:date>
    </item>
  </channel>
</rss>

