<?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: Month(today()) returning null value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539359#M1127869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK - more confusion now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Variable Overview it shows that vCurrentMonth has a value of 'Dec'. Isn't Month() supposed to return an int? On the text box I used the variable lookup dropdown to insert the variable name, so shouldn't be a spelling issue '=$(vCurrentMonth)' is the value in the text box expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Dec 2013 13:33:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-31T13:33:24Z</dc:date>
    <item>
      <title>Month(today()) returning null value</title>
      <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539356#M1127866</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;It's NYE, so this is probably a result of the end of the working year, but this is confusing the life out of me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two variables I'm declaring at the beginning of my script:&lt;/P&gt;&lt;P&gt;let vCurrentYear&amp;nbsp; = year(today());&lt;/P&gt;&lt;P&gt;let vCurrentMonth = month(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first correctly returns 2013.&lt;/P&gt;&lt;P&gt;The second appears to return a null value (to check I put both into separate text objects on my sheet. The vCurrentMonth displays as '-', the vCurrentYear as '2013').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Rory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 13:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539356#M1127866</guid>
      <dc:creator />
      <dc:date>2013-12-31T13:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Month(today()) returning null value</title>
      <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539357#M1127867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for me though. Are you sure you made no spelling mistakes in your text box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be sure, open Settings-&amp;gt;Variables in your QV Desktop and check the value of vCurrentMonth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 13:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539357#M1127867</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2013-12-31T13:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Month(today()) returning null value</title>
      <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539358#M1127868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try by using&lt;/P&gt;&lt;P&gt;SET &lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;MonthNames&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec'; in script&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 13:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539358#M1127868</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2013-12-31T13:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Month(today()) returning null value</title>
      <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539359#M1127869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK - more confusion now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Variable Overview it shows that vCurrentMonth has a value of 'Dec'. Isn't Month() supposed to return an int? On the text box I used the variable lookup dropdown to insert the variable name, so shouldn't be a spelling issue '=$(vCurrentMonth)' is the value in the text box expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 13:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539359#M1127869</guid>
      <dc:creator />
      <dc:date>2013-12-31T13:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Month(today()) returning null value</title>
      <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539360#M1127870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aha! I see...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put the following in your text box expression window:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='$(vCurrentMonth)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 13:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539360#M1127870</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2013-12-31T13:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Month(today()) returning null value</title>
      <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539361#M1127872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Rory Webber wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Isn't Month() supposed to return an int? &lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month() returns a dual data type, i.e. text and a number. You need to use Num(Month(today())) to return an int.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 13:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539361#M1127872</guid>
      <dc:creator />
      <dc:date>2013-12-31T13:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Month(today()) returning null value</title>
      <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539362#M1127874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month() returns a dual, which displays as 'Dec' but has an underlying value of 12. Don't use $() explansion as it will attempt to calculate the expression 'Dec' which will return null. Just use =vCurrentMonth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The $() expansion works for the year, because that is straight numeric, but&amp;nbsp; it is unnecessary, so also use =vCurrentYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 13:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539362#M1127874</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-12-31T13:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Month(today()) returning null value</title>
      <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539363#M1127876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=num(Month(Today()); then you have your int. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 13:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539363#M1127876</guid>
      <dc:creator />
      <dc:date>2013-12-31T13:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Month(today()) returning null value</title>
      <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539364#M1127877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try&lt;/P&gt;&lt;P&gt;=Text(Month(today()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 13:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539364#M1127877</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2013-12-31T13:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Month(today()) returning null value</title>
      <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539365#M1127878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;can u pls try this&lt;/P&gt;&lt;P&gt;=month(Now())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 14:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539365#M1127878</guid>
      <dc:creator />
      <dc:date>2013-12-31T14:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Month(today()) returning null value</title>
      <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539366#M1127880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Always try and avoid the Now() function &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;since it polls the operating system every second and hence could slow down the system. Use Today() instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 15:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539366#M1127880</guid>
      <dc:creator />
      <dc:date>2013-12-31T15:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Month(today()) returning null value</title>
      <link>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539367#M1127884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank U&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 15:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-today-returning-null-value/m-p/539367#M1127884</guid>
      <dc:creator />
      <dc:date>2013-12-31T15:19:42Z</dc:date>
    </item>
  </channel>
</rss>

