<?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 Not recognizing the number 10 as October in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Not-recognizing-the-number-10-as-October/m-p/328556#M120956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I found something that works.&amp;nbsp; I still have no idea why it wouldn't recognize 10, but I use the below function which states 10 as MM and then turns it into 10 and it works.&amp;nbsp; The whole function seems so redundant, but this is the only combination where QV recognized 10 as Oct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=Date(Date#(10,'MM'),'MM') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;It was good advice with the automation of the variable using max.&amp;nbsp; I've run into problems before with the order the date is listed in as to how Max reads the date, but it still works for this.&amp;nbsp; Thanks for the advice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Craig&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2011 20:29:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-18T20:29:26Z</dc:date>
    <item>
      <title>Not recognizing the number 10 as October</title>
      <link>https://community.qlik.com/t5/QlikView/Not-recognizing-the-number-10-as-October/m-p/328554#M120954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a variable which i update on a monthly bases for the current month (1 for Jan, 2 for Feb, 10 for Oct)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only problem is that now with 10 in for the variable all of the expressions using this variable are showing January data.&amp;nbsp; I was told today that qlikview won't recognize the 0 on of the 10, or the second one of 11 or the 2 of 12.&amp;nbsp; Can someone please explain why this is, and also provide an alternative route for this variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Craig &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 22:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-recognizing-the-number-10-as-October/m-p/328554#M120954</guid>
      <dc:creator />
      <dc:date>2011-11-17T22:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Not recognizing the number 10 as October</title>
      <link>https://community.qlik.com/t5/QlikView/Not-recognizing-the-number-10-as-October/m-p/328555#M120955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no idea what you're talking about in terms of QlikView thiking that 10 = 1.&amp;nbsp; I'm not denying that you're watching it happen, but I've never seen that happen.&amp;nbsp; I would use real months instead of numeric months (e.g., build with month(Date) as Month).&amp;nbsp; As far as updating the variable, you could set it on the load to the maximum Month for the current year, or just define it as something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=max({1&amp;lt;Year={'$(=max({1} Year))'}&amp;gt;} Month)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or even this if it makes more sense for your data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=month(today())&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 23:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-recognizing-the-number-10-as-October/m-p/328555#M120955</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-17T23:20:46Z</dc:date>
    </item>
    <item>
      <title>Not recognizing the number 10 as October</title>
      <link>https://community.qlik.com/t5/QlikView/Not-recognizing-the-number-10-as-October/m-p/328556#M120956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I found something that works.&amp;nbsp; I still have no idea why it wouldn't recognize 10, but I use the below function which states 10 as MM and then turns it into 10 and it works.&amp;nbsp; The whole function seems so redundant, but this is the only combination where QV recognized 10 as Oct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=Date(Date#(10,'MM'),'MM') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;It was good advice with the automation of the variable using max.&amp;nbsp; I've run into problems before with the order the date is listed in as to how Max reads the date, but it still works for this.&amp;nbsp; Thanks for the advice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Craig&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 20:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-recognizing-the-number-10-as-October/m-p/328556#M120956</guid>
      <dc:creator />
      <dc:date>2011-11-18T20:29:26Z</dc:date>
    </item>
    <item>
      <title>Not recognizing the number 10 as October</title>
      <link>https://community.qlik.com/t5/QlikView/Not-recognizing-the-number-10-as-October/m-p/328557#M120957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you know what's happening, date#(10,'MM') is telling QlikView to interpret the number 10 as an October date.&amp;nbsp; Since you haven't provided a year or day, it provides a default of 1899 for the year, and 1 as the day.&amp;nbsp; So this is generating the date October 1, 1899.&amp;nbsp; Well, technically, it's generating the numeric equivalent of that date, the number of days since December 30, 1899, which in this case is is -90.&amp;nbsp; The date() function then says to interpret -90 as a date, which is to say as October 1, 1899.&amp;nbsp; However, you then tell it to DISPLAY only the month number of this date, so it displays 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that approach works for you, OK.&amp;nbsp; I've never handled months like that, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 20:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-recognizing-the-number-10-as-October/m-p/328557#M120957</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-18T20:50:28Z</dc:date>
    </item>
    <item>
      <title>Not recognizing the number 10 as October</title>
      <link>https://community.qlik.com/t5/QlikView/Not-recognizing-the-number-10-as-October/m-p/328558#M120958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this understanding, it makes much more sense now.&amp;nbsp; I gues to really understand this you have to understand how the program processes information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated,&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 21:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-recognizing-the-number-10-as-October/m-p/328558#M120958</guid>
      <dc:creator />
      <dc:date>2011-11-18T21:02:59Z</dc:date>
    </item>
  </channel>
</rss>

