<?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: YTD flag difference reloading in app and reloading on server in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228046#M863835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yep we have a prj folder so that explains it thank you!&lt;/P&gt;&lt;P&gt;How irritating!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Dec 2016 07:41:08 GMT</pubDate>
    <dc:creator>adamdavi3s</dc:creator>
    <dc:date>2016-12-23T07:41:08Z</dc:date>
    <item>
      <title>YTD flag difference reloading in app and reloading on server</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228044#M863833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK so I wasn't quite sure which forum to post this under so it can go here as I know it is the most frequently monitored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is going to sound crazy so bear with me, its absolutely doing my head in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a master calendar QVD generator which has a number of 'flags' in it, one of which is calculated using the formula below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14824777727897681" jivemacro_uid="_14824777727897681"&gt;
&lt;P&gt;,YearToDate(Date)*-1 as CurYTDFlag&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok nothing fancy right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the table when reloaded in the app (either on my machine or the server)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="147492" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147492_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is the exact same table, loaded 30 second later but loaded by the Server (not publisher)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="147493" alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/147493_Capture2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a second flag using the YearToDate function which behaves the same way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All three systems are running V12 SR 4 (12.0.20300.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't explain this different behaviour but it is consistent behaviour, I mean it is easy to work around (one of many examples being&amp;nbsp; if(InYear(Date,now(),0)=-1 AND Date &amp;lt;=now(),1,0) ) but the YearToDate function is nice and easy to use&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228044#M863833</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: YTD flag difference reloading in app and reloading on server</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228045#M863834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the help:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Returns true if a &lt;SPAN class="Italic"&gt;date&lt;/SPAN&gt; falls within the year to date, else false. If none of the optional parameters are used, the year to date means any date within one calender year from January 1 up to and including the &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;date of the last script execution&lt;/EM&gt;&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect the difference is due to the last script execution date, which may be different depending on where the app was reloaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a -prj folder in the sale location as the calendar qvd? This will cause the last script execution date to be value 0 when the app is opened, so YearToDate() will always be false. The server reload is not affected in the same way, so YearToDate() works correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 07:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228045#M863834</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-12-23T07:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: YTD flag difference reloading in app and reloading on server</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228046#M863835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yep we have a prj folder so that explains it thank you!&lt;/P&gt;&lt;P&gt;How irritating!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 07:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228046#M863835</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-23T07:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: YTD flag difference reloading in app and reloading on server</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228047#M863837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know why opening a document with a -prj file zeroes the last reload time, but the ReloadTime() function is affected the same way. I can think of no logical reason for this behaviour, so I consider this to be bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 07:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228047#M863837</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-12-23T07:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: YTD flag difference reloading in app and reloading on server</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228048#M863838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have to agree, it has to be a bug in that Qlik isn't reading the value back as it is sure as heck writing it to the prj folder (Doc Properties)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;lt;LastReloadTimeAsISOString&amp;gt;2016-12-23T07:42:06.000Z&amp;lt;/LastReloadTimeAsISOString&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 07:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228048#M863838</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-23T07:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: YTD flag difference reloading in app and reloading on server</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228049#M863840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone coming across this thread, this issue has been worked on and will hopefully be resolved by 12.10 SR5 or SR6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 14:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228049#M863840</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-15T14:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: YTD flag difference reloading in app and reloading on server</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228050#M863842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 08:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-flag-difference-reloading-in-app-and-reloading-on-server/m-p/1228050#M863842</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-03-16T08:36:25Z</dc:date>
    </item>
  </channel>
</rss>

