<?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: round date with time difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296407#M404604</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;Please find attached document where I have put same condition in script with Where clause to show records where difference of time is more than 30 sec (you can change as per your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Time#(EndDate,'YYYY-MM-DD hh:mm:ss fff') as EndDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Time#(StartDate,'YYYY-MM-DD hh:mm:ss fff') as StartDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;StartDate,EndDate &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-01-20 00:01:25 235,2017-01-20 00:02:56 235&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-01-20 00:01:25 235,2017-01-20 00:01:26 235&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-01-20 00:01:25 235,2017-01-20 00:11:26 235&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-01-20 01:21:25 235,2017-01-20 01:31:26 235&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-01-20 01:21:25 235,2017-01-20 01:31:29 235&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;NewData:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Time(EndDate-StartDate,'hh:mm:ss fff')&amp;gt;Time#('00:00:30:','hh:mm:ss');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Data;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jun 2017 05:11:49 GMT</pubDate>
    <dc:creator>kamal_sanguri</dc:creator>
    <dc:date>2017-06-05T05:11:49Z</dc:date>
    <item>
      <title>round date with time difference</title>
      <link>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296400#M404597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 dates in table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StartDate: 2017-01-20 00:01:25 345&lt;/P&gt;&lt;P&gt;EndDate:&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;2017-01-20 00:01:26 235&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How can i get the difference between EndDate - StartDate &amp;amp; round it off to 2 decimals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 16:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296400#M404597</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2017-06-01T16:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: round date with time difference</title>
      <link>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296401#M404598</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;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;TimestampFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;='YYYY-MM-DD hh:mm:ss fff'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Interval&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;EndDate&lt;/SPAN&gt;-&lt;SPAN style="color: #800000;"&gt;StartDate&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,'ss,ff')&amp;nbsp; -&amp;gt; 00,89&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 16:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296401#M404598</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-01T16:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: round date with time difference</title>
      <link>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296402#M404599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting wierd results when i try below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interval(EndDate - StartDate ,'ssss') as Date_difference;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not calculating seconds difference in some fields properly, I also get E-5 on many fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="6-1-2017 4-20-42 PM.jpg" class="jive-image image-1" src="/legacyfs/online/165559_6-1-2017 4-20-42 PM.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 20:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296402#M404599</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2017-06-01T20:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: round date with time difference</title>
      <link>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296403#M404600</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;Please refer this document. Let me know in case you have any doubt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 05:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296403#M404600</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2017-06-02T05:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: round date with time difference</title>
      <link>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296404#M404601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the script. how do i use to evaluate seconds that exceeds 30 or only show records when it exceeds 5 minutes based on&amp;nbsp; your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 08:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296404#M404601</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2017-06-02T08:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: round date with time difference</title>
      <link>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296405#M404602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if (Time(EndDate-StartDate,'hh:mm:ss fff')&amp;gt;Time#('00:00:30:','hh:mm:ss'),Time(EndDate-StartDate,'hh:mm:ss fff'),'Less than 30 seconds not recorded.')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set it show when difference is more than 30 seconds, you can change it per your needs like for five minutes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if (Time(EndDate-StartDate,'hh:mm:ss fff')&amp;gt;&lt;STRONG&gt;Time#('00:05:00:','hh:mm:ss')&lt;/STRONG&gt;,Time(EndDate-StartDate,'hh:mm:ss fff'),'Less than 30 seconds not recorded.')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 08:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296405#M404602</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2017-06-02T08:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: round date with time difference</title>
      <link>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296406#M404603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am looking to do this in script with where clause. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 15:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296406#M404603</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2017-06-02T15:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: round date with time difference</title>
      <link>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296407#M404604</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;Please find attached document where I have put same condition in script with Where clause to show records where difference of time is more than 30 sec (you can change as per your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Time#(EndDate,'YYYY-MM-DD hh:mm:ss fff') as EndDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Time#(StartDate,'YYYY-MM-DD hh:mm:ss fff') as StartDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;StartDate,EndDate &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-01-20 00:01:25 235,2017-01-20 00:02:56 235&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-01-20 00:01:25 235,2017-01-20 00:01:26 235&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-01-20 00:01:25 235,2017-01-20 00:11:26 235&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-01-20 01:21:25 235,2017-01-20 01:31:26 235&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-01-20 01:21:25 235,2017-01-20 01:31:29 235&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;NewData:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Time(EndDate-StartDate,'hh:mm:ss fff')&amp;gt;Time#('00:00:30:','hh:mm:ss');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Data;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 05:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-date-with-time-difference/m-p/1296407#M404604</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2017-06-05T05:11:49Z</dc:date>
    </item>
  </channel>
</rss>

