<?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 floor reload time() issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346665#M128255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear frnds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we've an application running in our organzation which consists of two files &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;to create daily qvd &lt;/STRONG&gt;: this file concatenates the data daily from an sql table to the qvd built a day before. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While taking the data from table the developer has used floor(Reloadtime()) as Rundate which shud take the numeric part of the day the &lt;/P&gt;&lt;P&gt;application is run and we shud see this date as the maximum date every day in the main application which runs on successful completion of this file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;Main application : &lt;/STRONG&gt;But the issue for me is instead of showing this maximum date stored in the qvd, the application shows the date of a day before as the maximum date when date(Rundate) is used in the application. &lt;/P&gt;&lt;P&gt;For eg. if the Qvd is created on 12/07/2012 the main application shows 11/07/2012 as the maximum date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nowhere is he using num(RUNDATE)-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And moreover this is what is exactly intended in the application so its not something that needs to be changed, but why is this happening ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2012 06:17:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-12T06:17:25Z</dc:date>
    <item>
      <title>floor reload time() issue</title>
      <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346665#M128255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear frnds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we've an application running in our organzation which consists of two files &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;to create daily qvd &lt;/STRONG&gt;: this file concatenates the data daily from an sql table to the qvd built a day before. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While taking the data from table the developer has used floor(Reloadtime()) as Rundate which shud take the numeric part of the day the &lt;/P&gt;&lt;P&gt;application is run and we shud see this date as the maximum date every day in the main application which runs on successful completion of this file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;Main application : &lt;/STRONG&gt;But the issue for me is instead of showing this maximum date stored in the qvd, the application shows the date of a day before as the maximum date when date(Rundate) is used in the application. &lt;/P&gt;&lt;P&gt;For eg. if the Qvd is created on 12/07/2012 the main application shows 11/07/2012 as the maximum date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nowhere is he using num(RUNDATE)-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And moreover this is what is exactly intended in the application so its not something that needs to be changed, but why is this happening ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 06:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346665#M128255</guid>
      <dc:creator />
      <dc:date>2012-07-12T06:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: floor reload time() issue</title>
      <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346666#M128256</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;You mean that in the QVD you have data, in which the RunDate is 12/07/2012, but when you display the max in the Main Application, it displays the day before 11/07/2012, and so NOT the max ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first look I would say it's not possible, except:&lt;/P&gt;&lt;P&gt;- Set Analysis&lt;/P&gt;&lt;P&gt;- Active selections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure you have 12/07/2012 in QVD ? If the need is to display the day before, the developer could have found a tricky way to do the day -1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 06:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346666#M128256</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-07-12T06:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: floor reload time() issue</title>
      <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346667#M128257</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;thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, even if the Rundate is 12/07/2012 as max date in qvd generator, the application shows 11/07/2012 as max date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and interestingly while using floor(Reloadtime()) in the qvd generator the developer has added in the comment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//returns the date of the last reload before the actual one as an integer number.s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what is happening here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 06:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346667#M128257</guid>
      <dc:creator />
      <dc:date>2012-07-12T06:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: floor reload time() issue</title>
      <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346668#M128258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done test, your results are strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you create a new application, load the QVD, apply the max on RunDate and display it ? To see if you have same result.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If yes, can you take the QVD application, remove everything except this part, refresh the QVD, then try again with the new application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have this result, can you share the 2 applications ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 07:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346668#M128258</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-07-12T07:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: floor reload time() issue</title>
      <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346669#M128259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi qlik_techie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I stumbled upon the exact same problem with QV10 SR4(?).&lt;/P&gt;&lt;P&gt;I could never figure out why it happened, and I ended up with a comment just as your previous developer did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//returns the date of the last reload before the actual one as an integer number.s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this wasn't the reload date, it was another date field.&lt;/P&gt;&lt;P&gt;But anyway, it seems to be connected to the date datatype.&lt;/P&gt;&lt;P&gt;And I ended up having to do date-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/21613"&gt;Magnus Åvitsland&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.framsteg.com" target="_blank"&gt;Framsteg Business Intelligence Corp.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346669#M128259</guid>
      <dc:creator>magavi_framsteg</dc:creator>
      <dc:date>2012-07-12T08:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: floor reload time() issue</title>
      <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346670#M128260</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;i'm using QV 10 SR3, i think it's a bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets have some more comments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346670#M128260</guid>
      <dc:creator />
      <dc:date>2012-07-12T08:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: floor reload time() issue</title>
      <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346671#M128261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There might be some confusion on ReloadTime() , now(0) and now(1), when used in script vs. UI. Check this:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/64953#64953" title="http://community.qlik.com/message/64953#64953"&gt;http://community.qlik.com/message/64953#64953&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you run the qvd generator once a day, it wouldn't surprise me if your max rundate is always the day before the current date, if your rundate is set by reloadtime().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what you are saying is, that your actual rundate field contains the current date 12/0/2012, but it is not showing up in the main app? How have you checked that the field contains this value (in the qvd generator app, in the qvd itself?)? How do you display the rundate in the main app? Any chance that you can create and post a small sample app (or two apps and a qvd in your case)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346671#M128261</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-12T08:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: floor reload time() issue</title>
      <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346672#M128262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's exactly what I think. If there is a bug in ReloadTime(), ok, not a big deal. But if Qlikview has a bug on function MAX on dates, it's really important to point it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 09:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346672#M128262</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-07-12T09:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: floor reload time() issue</title>
      <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346673#M128263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Stefan Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'vent yet checked out the link you post. Before that i wud like to answer the questions you've asked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The field Rundate is set by floor(Reloadtime())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The table is dropped after qvd is created but a text box is placed in the qvd creator having expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Reload Date &amp;amp; Time: ' &amp;amp; Date(ReloadTime(), 'DD/MM/YYYY') &amp;amp; ' at ' &amp;amp; Date(ReloadTime(), 'hh:mm') &amp;amp; 'h.' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which today shows Reload Date &amp;amp; Time:12/07/2012 at 01:00h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) if the qvd created above is used in a separate test qvw file the highest/max Rundate available is 41101 which gives 11/07/2012 using date(Rundate) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) in the main application the date is shown as date(Rundate) as ArchiveDate in script, same as i've used in the test qvw. When the main application is opened the document level trigger on Post reload or On open selects max({1} ArchiveDate) in the field ArchiveDate which also selects 11/07/2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 09:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346673#M128263</guid>
      <dc:creator />
      <dc:date>2012-07-12T09:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: floor reload time() issue</title>
      <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346674#M128264</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;By MAX date i meant highest/maximum date. i'm not using max(Rundate) in the application.&lt;/P&gt;&lt;P&gt;Its only used in the trigger as mentioned in above post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the test qvw confirms that the issue is with the reloadtime() function as 12/07/2012 doesn't even exist in the qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 09:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346674#M128264</guid>
      <dc:creator />
      <dc:date>2012-07-12T09:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: floor reload time() issue</title>
      <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346675#M128265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the referenced thread. The ReloadTime() returned in your script run and then used in the UI will differ, as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor1294"&gt;&lt;/A&gt;&lt;A name="ReloadTime"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;ReloadTime( )&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns a timestamp for when the script last finished reexecuting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During your script run, it will return the timestamp of the your last finished script run (i.e. the previous date if you run only once a day). &lt;/P&gt;&lt;P&gt;As soon as the script has finished, the just updated reloadtime timestamp will be displayed in the UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QT won't call this a bug, it is working as described. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 09:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346675#M128265</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-12T09:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: floor reload time() issue</title>
      <link>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346676#M128266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've read Rob's explanation in the thread &amp;amp; now i understand the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 09:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/floor-reload-time-issue/m-p/346676#M128266</guid>
      <dc:creator />
      <dc:date>2012-07-12T09:33:13Z</dc:date>
    </item>
  </channel>
</rss>

