<?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: How to Calculate with Month Number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Calculate-with-Month-Number/m-p/692805#M250614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function Month expects a valid Timestamp as parameter, the variable is probably text?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;try&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;Month(Date#('$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vEndOfLastMonth&lt;/SPAN&gt;)','YourDateFormat'))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2014 16:31:06 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2014-07-31T16:31:06Z</dc:date>
    <item>
      <title>How to Calculate with Month Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Calculate-with-Month-Number/m-p/692801#M250610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to divide Sales thru the end of the last month by the number of months, but I cannot get this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum({$&amp;lt;_YTDAsOfLastMonth={1},Year={$(=Max(Year))}&amp;gt;}[Invoiced Order Net Revenue])) / (Num(Month(vEndOfLastMonth)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first half of this formula before the division sign works, but when I try to use a variable to create the month number for the last month, and divide, it doesn't work.&amp;nbsp; I'm sure I'm missing something little, so I'd appreciate any help.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 16:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Calculate-with-Month-Number/m-p/692801#M250610</guid>
      <dc:creator />
      <dc:date>2014-07-31T16:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate with Month Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Calculate-with-Month-Number/m-p/692802#M250611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;(Num(Month($(vEndOfLastMonth))))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 16:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Calculate-with-Month-Number/m-p/692802#M250611</guid>
      <dc:creator />
      <dc:date>2014-07-31T16:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate with Month Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Calculate-with-Month-Number/m-p/692803#M250612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good idea, as I thought about the $ too…  I just tried (Sum({$&amp;lt;_YTDAsOfLastMonth={1},Year={$(=Max(Year))}&amp;gt;}[Invoiced Order Net Revenue])) / (Num(Month($(vEndOfLastMonth)))&lt;/P&gt;&lt;P&gt;And it still doesn’t work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shelley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shelley Smith | Manager, Business Intelligence and Analytics&lt;/P&gt;&lt;P&gt;Spacesaver Corporation&lt;/P&gt;&lt;P&gt;DIRECT:: 920.563.0548 | CELL:: 608.751.4295 | TOLL:: 800.492.3434&lt;/P&gt;&lt;P&gt;FAX:: 920.563.0712 | WEB:: www.spacesaver.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 16:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Calculate-with-Month-Number/m-p/692803#M250612</guid>
      <dc:creator />
      <dc:date>2014-07-31T16:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate with Month Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Calculate-with-Month-Number/m-p/692804#M250613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 16:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Calculate-with-Month-Number/m-p/692804#M250613</guid>
      <dc:creator />
      <dc:date>2014-07-31T16:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate with Month Number</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Calculate-with-Month-Number/m-p/692805#M250614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function Month expects a valid Timestamp as parameter, the variable is probably text?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;try&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;Month(Date#('$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vEndOfLastMonth&lt;/SPAN&gt;)','YourDateFormat'))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 16:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Calculate-with-Month-Number/m-p/692805#M250614</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-07-31T16:31:06Z</dc:date>
    </item>
  </channel>
</rss>

