<?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: Calculating time interval using current time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-time-interval-using-current-time/m-p/475045#M482505</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;Try the match the data format in the comparison.. the best way is write your expression both side one by one in text box..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There you will find the format that your function is returning .. use date function to correct the format...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Aug 2013 00:12:12 GMT</pubDate>
    <dc:creator>sushil353</dc:creator>
    <dc:date>2013-08-08T00:12:12Z</dc:date>
    <item>
      <title>Calculating time interval using current time</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-time-interval-using-current-time/m-p/475044#M482504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to take a time interval of a set daily cutoff time and the the current day's time.&amp;nbsp; I have loaded the cutoff timestamp in the time([cutoff time]) format.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What I want to do is write an if statement if the current time passes the cutoff time to display a status i.e. 'Incomplete'/'Complete'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that when I write out my condition =if([Allocation Cutoff] &amp;lt; time(now()), 'Complete', 'Test') my output is 'Complete' for all times regardless of whether or not the current time greater than the cutoff time.&amp;nbsp; When I hard code a time of '4:00 PM' the condition works fine, but it seems time(now()) or any version of that - time(today()), time(localtime()) doesn't seem to recognize the relationship correctly in the condition.&amp;nbsp; I have even loaded a getdate() timestamp from my SQL load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another function/method I should be using correctly establish this relationship between cutoff time and the current time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 23:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-time-interval-using-current-time/m-p/475044#M482504</guid>
      <dc:creator />
      <dc:date>2013-08-07T23:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating time interval using current time</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-time-interval-using-current-time/m-p/475045#M482505</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;Try the match the data format in the comparison.. the best way is write your expression both side one by one in text box..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There you will find the format that your function is returning .. use date function to correct the format...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 00:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-time-interval-using-current-time/m-p/475045#M482505</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-08-08T00:12:12Z</dc:date>
    </item>
  </channel>
</rss>

