<?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 Using MonthNum - 1 in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-MonthNum-1-in-set-analysis/m-p/1198004#M386203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a expression which always counts data from the previous month when a user selects from my month list box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I.e. If a user selects Aug then the expression should show data for Jul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month List Box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apr May Jun Jul Aug Sep Oct Nov Dec Jan Feb Mar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression so far is:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Description = {'01) ABC'},&lt;/P&gt;&lt;P&gt;FactDate = {'&amp;gt;=$(=Monthstart(Addmonths(date(max(FactDate)), -1))) &amp;lt;=$(=MonthEnd(Addmonths(date(max(FactDate)), -1)))'} ,&lt;/P&gt;&lt;P&gt;[Breach Indicator] = {'N'}&amp;gt;}ID_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yet although &lt;SPAN style="font-size: 13.3333px;"&gt;Monthstart(Addmonths(date(max(FactDate)), -1 and &lt;SPAN style="font-size: 13.3333px;"&gt;MonthEnd(Addmonths(date(max(FactDate)), -1 do pick up the correct dates, my data is not showing accuratley&lt;/SPAN&gt;&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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Does anyone know a good way to show a count for the previous month when a month name is selected&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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In addition I have a field called MonthNum which I could use along lines of MonthNum-1 &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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any help would be greatly appreciated&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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Helen&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2016 16:35:14 GMT</pubDate>
    <dc:creator>helen_pip</dc:creator>
    <dc:date>2016-10-14T16:35:14Z</dc:date>
    <item>
      <title>Using MonthNum - 1 in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-MonthNum-1-in-set-analysis/m-p/1198004#M386203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a expression which always counts data from the previous month when a user selects from my month list box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I.e. If a user selects Aug then the expression should show data for Jul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month List Box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apr May Jun Jul Aug Sep Oct Nov Dec Jan Feb Mar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression so far is:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Description = {'01) ABC'},&lt;/P&gt;&lt;P&gt;FactDate = {'&amp;gt;=$(=Monthstart(Addmonths(date(max(FactDate)), -1))) &amp;lt;=$(=MonthEnd(Addmonths(date(max(FactDate)), -1)))'} ,&lt;/P&gt;&lt;P&gt;[Breach Indicator] = {'N'}&amp;gt;}ID_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yet although &lt;SPAN style="font-size: 13.3333px;"&gt;Monthstart(Addmonths(date(max(FactDate)), -1 and &lt;SPAN style="font-size: 13.3333px;"&gt;MonthEnd(Addmonths(date(max(FactDate)), -1 do pick up the correct dates, my data is not showing accuratley&lt;/SPAN&gt;&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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Does anyone know a good way to show a count for the previous month when a month name is selected&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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In addition I have a field called MonthNum which I could use along lines of MonthNum-1 &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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any help would be greatly appreciated&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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Helen&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 16:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-MonthNum-1-in-set-analysis/m-p/1198004#M386203</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2016-10-14T16:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using MonthNum - 1 in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-MonthNum-1-in-set-analysis/m-p/1198005#M386204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May try to ignore Month in your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count({$&amp;lt;Description = {'01) ABC'}, FactDate = {'&amp;gt;=$(=Monthstart(Addmonths(date(max(FactDate)), -1))) &amp;lt;=$(=MonthEnd(Addmonths(date(max(FactDate)), -1)))'}&lt;SPAN style="color: #ff0000;"&gt;, Month&lt;/SPAN&gt;, [Breach Indicator] = {'N'}&amp;gt;}ID_NO)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 16:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-MonthNum-1-in-set-analysis/m-p/1198005#M386204</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-14T16:37:58Z</dc:date>
    </item>
  </channel>
</rss>

