<?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: Adding time to today() and using it in an if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-time-to-today-and-using-it-in-an-if-statement/m-p/64970#M781256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=If(ReloadTime() &amp;gt; Today() + MakeTime(10), Date(Today() -1, 'YYYY-MM-DD'), Date(Today() -2, 'YYYY-MM-DD'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2018 16:20:00 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-03-21T16:20:00Z</dc:date>
    <item>
      <title>Adding time to today() and using it in an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-time-to-today-and-using-it-in-an-if-statement/m-p/64969#M781255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to set a dynamic variable for dates comparing against reload time and current time.&amp;nbsp; My application will be reloading twice per day, once at 8 a.m. and once at 10 a.m..&amp;nbsp; Most of my data is refreshed at 8 a.m. but I have a "Yesterday" tab whose data refreshes at the 10 a.m. mark.&amp;nbsp; Currently I am using: =if( reloadtime() &amp;gt; today(), date(today() -1, 'YYYY-MM-DD'), date(today() -2, 'YYYY-MM-DD')) so that if someone accesses app before 8 a.m. it will actually be 2 days ago data and if someone visits after 8 a.m. it will be today's data.&amp;nbsp; So what I need to be able to do is say if the reloadtime is after 10 a.m., then use today()-1 so I get truly yesterday's data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any and all help available and if I haven't described it well enough please feel free to ask some questions and I'll do my best to explain a bit more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&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/Adding-time-to-today-and-using-it-in-an-if-statement/m-p/64969#M781255</guid>
      <dc:creator>shinnickr</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding time to today() and using it in an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-time-to-today-and-using-it-in-an-if-statement/m-p/64970#M781256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=If(ReloadTime() &amp;gt; Today() + MakeTime(10), Date(Today() -1, 'YYYY-MM-DD'), Date(Today() -2, 'YYYY-MM-DD'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 16:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-time-to-today-and-using-it-in-an-if-statement/m-p/64970#M781256</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-21T16:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding time to today() and using it in an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-time-to-today-and-using-it-in-an-if-statement/m-p/64971#M781257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny Bro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u help me on this?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1456226"&gt;Applymap or left join is not working for non matching values&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 16:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-time-to-today-and-using-it-in-an-if-statement/m-p/64971#M781257</guid>
      <dc:creator>qlikview979</dc:creator>
      <dc:date>2018-03-21T16:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding time to today() and using it in an if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-time-to-today-and-using-it-in-an-if-statement/m-p/64972#M781258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny you rock!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gosh, it's just that easy huh.&amp;nbsp; I thought it would be a lot more complicated than that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton!!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 16:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-time-to-today-and-using-it-in-an-if-statement/m-p/64972#M781258</guid>
      <dc:creator>shinnickr</dc:creator>
      <dc:date>2018-03-21T16:31:02Z</dc:date>
    </item>
  </channel>
</rss>

