<?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: Smaller or equal too calculating with times in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577600#M1118754</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 tried the suggestions with the Round(..) formula, but it didn't work either. Eventually, I changed 1/48 to 31/1440. That solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2014 12:58:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-28T12:58:53Z</dc:date>
    <item>
      <title>Smaller or equal too calculating with times</title>
      <link>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577595#M1118749</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 trying to report how many trucks in my dataset arrived on time. All trucks that arrive within half an hour after their booked time (Delivery Due Time), or on time. To do this, I added the following line to my script:&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;If([Vehicle arrival Time]-[Delivery DueTime]&amp;lt;=(1/48), 1,0) as [On time]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a truck is half an hour late (1/48 hour), it is still on time. That's why i put &amp;lt;= 1/48 in my script. However, when the truck arrives exactly half an hour later than their booked time, Qlikview still regards them as late (it gives them a "0" as value). Can anybody explain this/help me with this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 11:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577595#M1118749</guid>
      <dc:creator />
      <dc:date>2014-01-28T11:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Smaller or equal too calculating with times</title>
      <link>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577596#M1118750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe some rounding problem, try rounding to nearest minute&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(round([Vehicle arrival Time]-[Delivery DueTime],1/(24*60))&amp;lt;=(1/48), 1,0) as [On time]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 12:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577596#M1118750</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-01-28T12:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Smaller or equal too calculating with times</title>
      <link>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577597#M1118751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please attach sample qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 12:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577597#M1118751</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2014-01-28T12:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Smaller or equal too calculating with times</title>
      <link>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577598#M1118752</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 would try and take the floating point comparison out completely, like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Round(([&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Vehicle arrival Time]-[Delivery DueTime]) * 48) &amp;lt;= 1, ...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 12:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577598#M1118752</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-01-28T12:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Smaller or equal too calculating with times</title>
      <link>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577599#M1118753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Round(([&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Vehicle arrival Time]-[Delivery DueTime]) * 24, 0.1) &amp;lt;= 0.5, ...)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 12:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577599#M1118753</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-01-28T12:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Smaller or equal too calculating with times</title>
      <link>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577600#M1118754</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 tried the suggestions with the Round(..) formula, but it didn't work either. Eventually, I changed 1/48 to 31/1440. That solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 12:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Smaller-or-equal-too-calculating-with-times/m-p/577600#M1118754</guid>
      <dc:creator />
      <dc:date>2014-01-28T12:58:53Z</dc:date>
    </item>
  </channel>
</rss>

