<?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 understanding the 'better calendar script' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/understanding-the-better-calendar-script/m-p/1151366#M634927</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;Reference the very good blog post here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2015/05/better-calendar-scripts/" title="http://qlikviewcookbook.com/2015/05/better-calendar-scripts/"&gt;http://qlikviewcookbook.com/2015/05/better-calendar-scripts/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was testing the initial part of the load and getting a result I dont understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I am loading:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(fieldvalue('Order Header Invoice Date',recno()))-1&amp;nbsp;&amp;nbsp;&amp;nbsp; as mindate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,max(fieldvalue('Order Header Invoice Date',recno()))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as maxdate&lt;/P&gt;&lt;P&gt;AUTOGENERATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldvaluecount('Order Header Invoice Date')&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of the 591 distinct dates in the 'Order Header Invoice Date' it returns mindate as one less than the first date in the 'Order Header Invoice Date' which is correct; however the maxdate value is simply '&lt;STRONG&gt;?&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this monday morning stupidity (&lt;EM&gt;again&lt;/EM&gt;) or has something gone wrong or been lost in translation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Oli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2016 09:14:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-05-16T09:14:11Z</dc:date>
    <item>
      <title>understanding the 'better calendar script'</title>
      <link>https://community.qlik.com/t5/QlikView/understanding-the-better-calendar-script/m-p/1151366#M634927</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;Reference the very good blog post here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2015/05/better-calendar-scripts/" title="http://qlikviewcookbook.com/2015/05/better-calendar-scripts/"&gt;http://qlikviewcookbook.com/2015/05/better-calendar-scripts/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was testing the initial part of the load and getting a result I dont understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I am loading:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(fieldvalue('Order Header Invoice Date',recno()))-1&amp;nbsp;&amp;nbsp;&amp;nbsp; as mindate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,max(fieldvalue('Order Header Invoice Date',recno()))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as maxdate&lt;/P&gt;&lt;P&gt;AUTOGENERATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldvaluecount('Order Header Invoice Date')&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of the 591 distinct dates in the 'Order Header Invoice Date' it returns mindate as one less than the first date in the 'Order Header Invoice Date' which is correct; however the maxdate value is simply '&lt;STRONG&gt;?&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this monday morning stupidity (&lt;EM&gt;again&lt;/EM&gt;) or has something gone wrong or been lost in translation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Oli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 09:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/understanding-the-better-calendar-script/m-p/1151366#M634927</guid>
      <dc:creator />
      <dc:date>2016-05-16T09:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: understanding the 'better calendar script'</title>
      <link>https://community.qlik.com/t5/QlikView/understanding-the-better-calendar-script/m-p/1151367#M634928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to apply &lt;STRONG&gt;Num&lt;/STRONG&gt; or &lt;STRONG&gt;Date&lt;/STRONG&gt; function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;num(min(fieldvalue('Order Header Invoice Date',recno()))-1)&amp;nbsp;&amp;nbsp;&amp;nbsp; as mindate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,num(max(fieldvalue('Order Header Invoice Date',recno())))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as maxdate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 09:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/understanding-the-better-calendar-script/m-p/1151367#M634928</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-16T09:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: understanding the 'better calendar script'</title>
      <link>https://community.qlik.com/t5/QlikView/understanding-the-better-calendar-script/m-p/1151368#M634929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not a monday morning stupidity. It's something can happen with formatted dates. You could try adding a num around it: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; ,num(max(fieldvalue('Order Header Invoice Date',recno())))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as maxdate&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 09:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/understanding-the-better-calendar-script/m-p/1151368#M634929</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-05-16T09:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: understanding the 'better calendar script'</title>
      <link>https://community.qlik.com/t5/QlikView/understanding-the-better-calendar-script/m-p/1151369#M634930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both of you.&amp;nbsp; I have just started to become smarter to the date related 'gotchas'.&amp;nbsp; I can now add this one to that list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;apologies &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt; that I cant mark more than one correct answer and as &lt;A href="https://community.qlik.com/qlik-users/57428"&gt;kush141087&lt;/A&gt; piped you to post I have marked your anwser as helpful.&amp;nbsp; Cheers anyway &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 09:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/understanding-the-better-calendar-script/m-p/1151369#M634930</guid>
      <dc:creator />
      <dc:date>2016-05-16T09:37:34Z</dc:date>
    </item>
  </channel>
</rss>

