<?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: Count Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626232#M230255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niru&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always define a continues month number in my script. So if your application starts with 2011 data I calculate the number by :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Year(Date) - 2011 ) * 12 + Month(date) so it is very simpel to make calculations in your set analysis f.i :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff;"&gt;Sum&lt;/SPAN&gt; ({&amp;lt; &lt;SPAN style="color: #941100;"&gt;PERIODKEY&lt;/SPAN&gt; = {'&amp;gt; $(=$(vcurrYearMonthnum)-24)&amp;nbsp;&amp;nbsp; &amp;lt;=&amp;nbsp; $(=$(vcurrYearMonthnum)-12) ' } ,&lt;SPAN style="color: #941100;"&gt;F_PPP&lt;/SPAN&gt; = {1,2} , &lt;SPAN style="color: #941100;"&gt;T_PPP&lt;/SPAN&gt;={3} &amp;gt;} &lt;SPAN style="color: #941100;"&gt;COUNTER&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vcurrYearMonthnum has been calculated as mentioned above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2014 08:52:31 GMT</pubDate>
    <dc:creator>beeaj2011</dc:creator>
    <dc:date>2014-03-12T08:52:31Z</dc:date>
    <item>
      <title>Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626225#M230248</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;I want to count all previous three year months&lt;/P&gt;&lt;P&gt;01-03-2011 from to till date how many months please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Niranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 07:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626225#M230248</guid>
      <dc:creator>NavinReddy</dc:creator>
      <dc:date>2014-03-12T07:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626226#M230249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please Find attached QVW will help you lots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 07:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626226#M230249</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2014-03-12T07:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626227#M230250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Date={'&amp;gt;=$(=Monthstart(Max(Date),-2))&amp;lt;=$(=Date(Max(Date)))'},Month=&amp;gt;}ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 07:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626227#M230250</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2014-03-12T07:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626228#M230251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check enclosed file..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 07:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626228#M230251</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-12T07:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626229#M230252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create 6 variables:&lt;/P&gt;&lt;P&gt;yearLess2start = Makedate(year(today())-2, month(today()), 1);&lt;/P&gt;&lt;P&gt;yearLess2end = Makedate(year(today())-2, month(today()), day(today());&lt;/P&gt;&lt;P&gt;yearLess1start = Makedate(year(today())-1, month(today()), 1);&lt;/P&gt;&lt;P&gt;yearLess1end = Makedate(year(today())-2, month(today()), day(today());&lt;/P&gt;&lt;P&gt;yearCurrentstart = Makedate(year(today()), month(today()), 1);&lt;/P&gt;&lt;P&gt;yearCurrentend = Makedate(year(today()), month(today()), day(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your expressions must be:&lt;/P&gt;&lt;P&gt;for the 2012: sum({$ &amp;lt;mydate = {'&amp;gt;=$(yearLess2start)&amp;lt;=$(yearLess2end)'}&amp;gt;} value)&lt;/P&gt;&lt;P&gt;for the 2013: sum({$ &amp;lt;mydate = {'&amp;gt;=$(yearLess1start)&amp;lt;=$(yearLess1end)'}&amp;gt;} value)&lt;/P&gt;&lt;P&gt;for the 2014: sum({$ &amp;lt;mydate = {'&amp;gt;=$(yearCurrentstart)&amp;lt;=$(yeaCurrentend)'}&amp;gt;} value)&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>Wed, 12 Mar 2014 07:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626229#M230252</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-12T07:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626230#M230253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to get with to dates 01-03-2011 to 12-03-2014&lt;/P&gt;&lt;P&gt;In between using set analysis with out writing any script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Niranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 08:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626230#M230253</guid>
      <dc:creator>NavinReddy</dc:creator>
      <dc:date>2014-03-12T08:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626231#M230254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this thread hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-3836" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Calculating Months difference between two dates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 08:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626231#M230254</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-12T08:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626232#M230255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niru&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always define a continues month number in my script. So if your application starts with 2011 data I calculate the number by :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Year(Date) - 2011 ) * 12 + Month(date) so it is very simpel to make calculations in your set analysis f.i :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff;"&gt;Sum&lt;/SPAN&gt; ({&amp;lt; &lt;SPAN style="color: #941100;"&gt;PERIODKEY&lt;/SPAN&gt; = {'&amp;gt; $(=$(vcurrYearMonthnum)-24)&amp;nbsp;&amp;nbsp; &amp;lt;=&amp;nbsp; $(=$(vcurrYearMonthnum)-12) ' } ,&lt;SPAN style="color: #941100;"&gt;F_PPP&lt;/SPAN&gt; = {1,2} , &lt;SPAN style="color: #941100;"&gt;T_PPP&lt;/SPAN&gt;={3} &amp;gt;} &lt;SPAN style="color: #941100;"&gt;COUNTER&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vcurrYearMonthnum has been calculated as mentioned above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 08:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626232#M230255</guid>
      <dc:creator>beeaj2011</dc:creator>
      <dc:date>2014-03-12T08:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626233#M230256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attached sample for a way in the front end without any data from back end. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: My sample takes year as input, you can modify accordingly for date input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 08:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626233#M230256</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-03-12T08:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626234#M230257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replay,&lt;/P&gt;&lt;P&gt;but im using&amp;nbsp; 03-02-2011 format how can give this date&lt;/P&gt;&lt;P&gt;Thanks you so much &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Niranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 09:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626234#M230257</guid>
      <dc:creator>NavinReddy</dc:creator>
      <dc:date>2014-03-12T09:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626235#M230258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Niru&lt;/P&gt;&lt;P&gt;You can try below.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(Num(Month(Max(Date)))-Num(Month(Min(Date)))&amp;gt;=0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ((Num(Year(Max(Date)))-Num(Year(Min(Date))))*12)+Num(Month(Max(Date)))-Num(Month(Min(Date)))+1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; (NUM(Year(Max(Date))-Num(Year(Min(Date)))-1)*12)+13-Num(Month(Min(Date)))+Num(Month(Max(Date)))&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 09:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626235#M230258</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-12T09:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626236#M230259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goto variable overview and change the definition of &lt;EM&gt;vStartNum : &lt;/EM&gt;like :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="dd.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/54790_dd.png" style="width: 620px; height: 360px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 09:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626236#M230259</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-03-12T09:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626237#M230260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Niru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the formulae you can use to get the months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Year(Today(2))*12 + Month(Today(2))) - (Year(Date#('01-03-2011','DD-MM-YYYY'))*12 + Month(Date#('01-03-2011','DD-MM-YYYY')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 09:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/626237#M230260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-12T09:35:24Z</dc:date>
    </item>
  </channel>
</rss>

