<?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: Compare dates and mark Late in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-dates-and-mark-Late/m-p/541541#M1124844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ofcourse you should also replace the term "Service" by you own field that contains the kind of service to check,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jan 2014 10:48:30 GMT</pubDate>
    <dc:creator>richard</dc:creator>
    <dc:date>2014-01-21T10:48:30Z</dc:date>
    <item>
      <title>Compare dates and mark Late</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-dates-and-mark-Late/m-p/541537#M1124840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I wonder if you could help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two dates in my qlikview app a Collection date and Delivery date I can work out the numbers of days between these by doing a : expression like so: =dayStart(Deldate) - DayStart(timestamp(CollDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however I want to compare the date with a service level if the service level is EC and the Date is over 3 days mark it as late if its 3 days mark it as Ontime and if its earlier than 3 Mark it Early&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I would like to do the same with&amp;nbsp; a Different Service but different parameters and display this on a graph showing what's on time and what's late and what's early&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what's the best way of doing this? does anyone have any examples?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 09:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-dates-and-mark-Late/m-p/541537#M1124840</guid>
      <dc:creator />
      <dc:date>2014-01-21T09:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Compare dates and mark Late</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-dates-and-mark-Late/m-p/541538#M1124841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; Try this in you script or object expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Service= 'A',&lt;BR /&gt;(if(dayStart(Deldate) - DayStart(Deldatetimestamp(CollDate))=3, 'On time',&lt;BR /&gt;if(dayStart(Deldate) - DayStart(Deldatetimestamp(CollDate))&amp;lt;3, 'Early',&lt;BR /&gt;if(dayStart(Deldate) - DayStart(Deldatetimestamp(CollDate))&amp;gt;3, 'Late')))),&lt;BR /&gt;Service= 'B',&lt;BR /&gt;(if(dayStart(Deldate) - DayStart(Deldatetimestamp(CollDate))=3, 'On time',&lt;BR /&gt;if(dayStart(Deldate) - DayStart(Deldatetimestamp(CollDate))&amp;lt;3, 'Early',&lt;BR /&gt;if(dayStart(Deldate) - DayStart(Deldatetimestamp(CollDate))&amp;gt;3, 'Late'))))&lt;BR /&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 10:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-dates-and-mark-Late/m-p/541538#M1124841</guid>
      <dc:creator>richard</dc:creator>
      <dc:date>2014-01-21T10:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compare dates and mark Late</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-dates-and-mark-Late/m-p/541539#M1124842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;I seem to be getting an error with the above so I changed it to: = if(Service= 'EC', (if(dayStart(Deldate) - DayStart(timestamp(CollDate))=3, 'On time', if(dayStart(Deldate) - DayStart(timestamp(CollDate))3, 'Late')))), Service= 'SD', (if(dayStart(Deldate) - DayStart(timestamp(CollDate))=1, 'On time', if(dayStart(Deldate) - DayStart(timestamp(CollDate))1, 'Late')))) ) but then I just get a - in the table even though it says the expression is correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 10:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-dates-and-mark-Late/m-p/541539#M1124842</guid>
      <dc:creator />
      <dc:date>2014-01-21T10:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compare dates and mark Late</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-dates-and-mark-Late/m-p/541540#M1124843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DaysDifference&lt;/SPAN&gt; = 3, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt; 'On time',&lt;/SPAN&gt; If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DaysDifference&lt;/SPAN&gt; &amp;gt; 3, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;'Late'&lt;/SPAN&gt;, If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DaysDifference&lt;/SPAN&gt; &amp;lt; 3, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt; 'Early',&lt;/SPAN&gt; 'N/A') AS Status;&lt;/P&gt;&lt;P&gt;LOAD&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;"&gt;dayStart(Deldate) - DayStart(timestamp(CollDate)) AS DaysDifference&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM DataSource;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 10:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-dates-and-mark-Late/m-p/541540#M1124843</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-01-21T10:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare dates and mark Late</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-dates-and-mark-Late/m-p/541541#M1124844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ofcourse you should also replace the term "Service" by you own field that contains the kind of service to check,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 10:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-dates-and-mark-Late/m-p/541541#M1124844</guid>
      <dc:creator>richard</dc:creator>
      <dc:date>2014-01-21T10:48:30Z</dc:date>
    </item>
  </channel>
</rss>

