<?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 Count Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/150820#M28781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunil,&lt;/P&gt;&lt;P&gt;Because Months are usually stored as a Dual (meaning they have both a numeric and a text representation) you can actually just subtract them to find the number fo months between them. A work of caution though, this only works if you are staying in the same year. If you are crossing years you must account for that.&lt;/P&gt;&lt;P&gt;So, given your example, something like this should work:&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;Month(AddMonths(Today(),-1)) - Month(YearStart(Today()))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This will give you the number of months between last month and the start of the year.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sjprows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2009 21:12:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-31T21:12:01Z</dc:date>
    <item>
      <title>Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/150818#M28779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Below expression returns Jan 2008 to jun 2008. I need to count the no. of month between them:&lt;/P&gt;&lt;P&gt;MonthName(YearStart(Date#( Year(Today())-1, 'YYYY') )) &amp;amp;' to '&amp;amp; month(addmonths(Today(),-1)) &amp;amp;' ' &amp;amp;(Year(Today())-1)&lt;/P&gt;&lt;P&gt;If possible, let me know some other way to calculate no. of months between starting of year to lst month as done above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 19:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/150818#M28779</guid>
      <dc:creator />
      <dc:date>2009-07-31T19:27:14Z</dc:date>
    </item>
    <item>
      <title>Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/150819#M28780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wouldn't that be same as number of last month, like 6 for june, since you are always workign with current year only?&lt;/P&gt;&lt;P&gt;If this is correct, you can get that by using: num(month(addmonths(Today(),-1)))&lt;/P&gt;&lt;P&gt;Hope I answered what you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 20:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/150819#M28780</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-31T20:39:23Z</dc:date>
    </item>
    <item>
      <title>Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/150820#M28781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunil,&lt;/P&gt;&lt;P&gt;Because Months are usually stored as a Dual (meaning they have both a numeric and a text representation) you can actually just subtract them to find the number fo months between them. A work of caution though, this only works if you are staying in the same year. If you are crossing years you must account for that.&lt;/P&gt;&lt;P&gt;So, given your example, something like this should work:&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;Month(AddMonths(Today(),-1)) - Month(YearStart(Today()))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This will give you the number of months between last month and the start of the year.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sjprows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 21:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/150820#M28781</guid>
      <dc:creator />
      <dc:date>2009-07-31T21:12:01Z</dc:date>
    </item>
    <item>
      <title>Count Month</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Month/m-p/150821#M28782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Month(YearStart(Today())) is always 1 so you might hard code it as 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 21:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Month/m-p/150821#M28782</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-31T21:16:29Z</dc:date>
    </item>
  </channel>
</rss>

