<?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: Curent month vs previous in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581671#M1105745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all for replayes, i cant sent a example becouse its very huge (500mb), ist complicate to explain, but i have a master caledar, but i can use ir for his expresion, becouse its coresponds for abonement sales date..i need count all active abonemens&amp;nbsp; for each month, and for this i have field StatusHistory.YearMonth. Waht exacly i need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need on straight table have 2 expresions, one - active abonements on month start(i already have it with - COUNT (distinct SabID), second - active abonement on month end (for this i want to get values from next month, , becouse the values of next monthstart active abonemets ant curentmonthend is similar. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/55120_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2014 10:09:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-17T10:09:00Z</dc:date>
    <item>
      <title>Curent month vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581665#M1105739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need help with set analysis. I have a yearmonth field - StatusHistory.YearMonth&lt;/P&gt;&lt;P&gt;i need to count sabid for curent month and previous month..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for curent month i count :COUNT (distinct SabID) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for previous month i count: COUNT({&amp;lt;StatusHistory.YearMonth = {"$(=StatusHistory.YearMonth(Max(StatusHistory.YearMonth), -1))"}&amp;gt;}distinct SabID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but is not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 08:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581665#M1105739</guid>
      <dc:creator />
      <dc:date>2014-03-17T08:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Curent month vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581666#M1105740</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;Try this&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;&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;COUNT({&amp;lt;StatusHistory.YearMonth = {"$(=Max(StatusHistory.YearMonth), -1)"}&amp;gt;}distinct SabID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 08:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581666#M1105740</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-17T08:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Curent month vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581667#M1105741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better create a date using monthyear data available, then you can easily add a flag for current &amp;amp; previous month, year etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 09:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581667#M1105741</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2014-03-17T09:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Curent month vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581668#M1105742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not working..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 09:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581668#M1105742</guid>
      <dc:creator />
      <dc:date>2014-03-17T09:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Curent month vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581669#M1105743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you provide your example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 09:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581669#M1105743</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-17T09:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Curent month vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581670#M1105744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In your Master Calendar if there is no year &amp;amp; month then create these two,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;MakeDate(Left(StatusHistory.YearMonth, 4), Right(StatusHistory.YearMonth,3)) AS Date,&lt;/P&gt;&lt;P&gt;Left(StatusHistory.YearMonth, 4) AS Year,&lt;/P&gt;&lt;P&gt;Num(Right(StatusHistory.YearMonth,3)) As Month&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try this expression:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Year = {'$(=Max(Year))'}, Month={'$(=Max(Month))'}&amp;gt;} Distinct SabID) ---- Current Month&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Year = {'$(=Max(Year))'}, Month={'$(=Max(Month) - 1)'}&amp;gt;} Distinct SabID) ---- Previous Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 09:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581670#M1105744</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2014-03-17T09:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Curent month vs previous</title>
      <link>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581671#M1105745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all for replayes, i cant sent a example becouse its very huge (500mb), ist complicate to explain, but i have a master caledar, but i can use ir for his expresion, becouse its coresponds for abonement sales date..i need count all active abonemens&amp;nbsp; for each month, and for this i have field StatusHistory.YearMonth. Waht exacly i need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need on straight table have 2 expresions, one - active abonements on month start(i already have it with - COUNT (distinct SabID), second - active abonement on month end (for this i want to get values from next month, , becouse the values of next monthstart active abonemets ant curentmonthend is similar. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/55120_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 10:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Curent-month-vs-previous/m-p/581671#M1105745</guid>
      <dc:creator />
      <dc:date>2014-03-17T10:09:00Z</dc:date>
    </item>
  </channel>
</rss>

