<?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 Dates/Times in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dates-Times/m-p/26602#M769599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping someone can help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two dates which appear like this from the database &lt;STRONG&gt;04/06/2018 16:00:00 &lt;/STRONG&gt;and the t&lt;SPAN style="font-size: 10pt;"&gt;wo fields from the DB are &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt;Date Booked In &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;and &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt;Arrival Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to specify whether a delivery was &lt;STRONG&gt;On Time, Late&lt;/STRONG&gt; or &lt;STRONG&gt;Early&lt;/STRONG&gt;. So, basically if the &lt;STRONG&gt;Date Booked&lt;/STRONG&gt; matches the &lt;STRONG&gt;Arrival Date&lt;/STRONG&gt; then this is &lt;STRONG&gt;On Time&lt;/STRONG&gt; etc.&amp;nbsp; However here's the tricky bit! There is a 15 minute window allowed so if a &lt;STRONG&gt;Booked Date&lt;/STRONG&gt; is &lt;STRONG&gt;04/06/2018 10:30:00 &lt;/STRONG&gt;and the Arrival Date is &lt;STRONG&gt;04/06/2018 10:40:00 &lt;/STRONG&gt;then this will be &lt;STRONG&gt;On Time &lt;/STRONG&gt;the same applies if this was the other way round, so &lt;STRONG&gt;Booked Date&lt;/STRONG&gt; &lt;STRONG&gt;04/06/2018 10:40:00 &lt;/STRONG&gt;and the &lt;STRONG&gt;Arrival Date&lt;/STRONG&gt; &lt;STRONG&gt;04/06/2018 10:30:00 &lt;/STRONG&gt;this would also be &lt;STRONG&gt;On Time&lt;/STRONG&gt;.&amp;nbsp; The &lt;STRONG&gt;Late &lt;/STRONG&gt;and the &lt;STRONG&gt;Early &lt;/STRONG&gt;are self explanatory BUT&lt;STRONG&gt; &lt;/STRONG&gt;only if outside of the 15 minute window!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would like an &lt;STRONG&gt;IF&lt;/STRONG&gt; statement within the load script but I cannot for the life of me figure this one out!? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone offer any advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>jamelmessaoud</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Dates/Times</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Times/m-p/26602#M769599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping someone can help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two dates which appear like this from the database &lt;STRONG&gt;04/06/2018 16:00:00 &lt;/STRONG&gt;and the t&lt;SPAN style="font-size: 10pt;"&gt;wo fields from the DB are &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt;Date Booked In &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;and &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt;Arrival Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to specify whether a delivery was &lt;STRONG&gt;On Time, Late&lt;/STRONG&gt; or &lt;STRONG&gt;Early&lt;/STRONG&gt;. So, basically if the &lt;STRONG&gt;Date Booked&lt;/STRONG&gt; matches the &lt;STRONG&gt;Arrival Date&lt;/STRONG&gt; then this is &lt;STRONG&gt;On Time&lt;/STRONG&gt; etc.&amp;nbsp; However here's the tricky bit! There is a 15 minute window allowed so if a &lt;STRONG&gt;Booked Date&lt;/STRONG&gt; is &lt;STRONG&gt;04/06/2018 10:30:00 &lt;/STRONG&gt;and the Arrival Date is &lt;STRONG&gt;04/06/2018 10:40:00 &lt;/STRONG&gt;then this will be &lt;STRONG&gt;On Time &lt;/STRONG&gt;the same applies if this was the other way round, so &lt;STRONG&gt;Booked Date&lt;/STRONG&gt; &lt;STRONG&gt;04/06/2018 10:40:00 &lt;/STRONG&gt;and the &lt;STRONG&gt;Arrival Date&lt;/STRONG&gt; &lt;STRONG&gt;04/06/2018 10:30:00 &lt;/STRONG&gt;this would also be &lt;STRONG&gt;On Time&lt;/STRONG&gt;.&amp;nbsp; The &lt;STRONG&gt;Late &lt;/STRONG&gt;and the &lt;STRONG&gt;Early &lt;/STRONG&gt;are self explanatory BUT&lt;STRONG&gt; &lt;/STRONG&gt;only if outside of the 15 minute window!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would like an &lt;STRONG&gt;IF&lt;/STRONG&gt; statement within the load script but I cannot for the life of me figure this one out!? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone offer any advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;J&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/Dates-Times/m-p/26602#M769599</guid>
      <dc:creator>jamelmessaoud</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dates/Times</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Times/m-p/26603#M769600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;EDITED&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;if(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Booked Date=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Arrival Date or fabs(interval(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Booked Date-&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="text-decoration: line-through;"&gt;Arrival Date,'mm'))&amp;lt;=15, 'ON TIME') as FIELD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="text-decoration: line-through;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;if(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Booked Date=&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Arrival Date or interval(Fabs(&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Booked Date-&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Arrival Date),'mm')&amp;lt;=15, 'ON TIME') as FIELD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 12:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Times/m-p/26603#M769600</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-14T12:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dates/Times</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Times/m-p/26604#M769601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured this out in the end but thank you for the help Youssef &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2018 09:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Times/m-p/26604#M769601</guid>
      <dc:creator>jamelmessaoud</dc:creator>
      <dc:date>2018-06-18T09:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dates/Times</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-Times/m-p/26605#M769602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're welcome !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2018 11:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-Times/m-p/26605#M769602</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-18T11:55:14Z</dc:date>
    </item>
  </channel>
</rss>

