<?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 milliseconds in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/milliseconds/m-p/610437#M1104581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;is there a function in Qlikview to calculate milliseconds, like the function below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sum(DATEDIFF (MILLISECOND , isnull(START_DATE,0) , isnull(END_DATE,0))) TIMEDURATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help please !!&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>Sun, 23 Mar 2014 19:22:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-23T19:22:22Z</dc:date>
    <item>
      <title>milliseconds</title>
      <link>https://community.qlik.com/t5/QlikView/milliseconds/m-p/610437#M1104581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;is there a function in Qlikview to calculate milliseconds, like the function below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sum(DATEDIFF (MILLISECOND , isnull(START_DATE,0) , isnull(END_DATE,0))) TIMEDURATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help please !!&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>Sun, 23 Mar 2014 19:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/milliseconds/m-p/610437#M1104581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-23T19:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: milliseconds</title>
      <link>https://community.qlik.com/t5/QlikView/milliseconds/m-p/610438#M1104582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't get what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time calculations are just floating point operations, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time1 - Time2 as TimeDiff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a load script to get the difference of field values (assuming Time1 and Time2 are correctly interpreted as time values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can format the Result using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval(TimeDiff,'hh:mm:ss.fff')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[where fff denotes the milliseconds]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 19:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/milliseconds/m-p/610438#M1104582</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-03-23T19:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: milliseconds</title>
      <link>https://community.qlik.com/t5/QlikView/milliseconds/m-p/610439#M1104583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, thanks for your replay.&lt;/P&gt;&lt;P&gt;I need to calculate the milliseconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do this:&lt;/P&gt;&lt;P&gt;ceil(num#(text(Interval(TIMEDIFF, 'hh')))*3600 + minute(TIMEDIFF)*60 + second(TIMEDIFF)) as SECONDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I don't know how to calculate milliseconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I explained a bit better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 21:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/milliseconds/m-p/610439#M1104583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-23T21:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: milliseconds</title>
      <link>https://community.qlik.com/t5/QlikView/milliseconds/m-p/610440#M1104584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;multiplying an interval with 86400 (number of seconds per day) should suffice to get the intervall in seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&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; font-size: 10pt; line-height: 1.5em;"&gt;ceil(num#(text(Interval(TIMEDIFF, 'hh')))*3600 + minute(TIMEDIFF)*60 + second(TIMEDIFF)) as SECONDS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&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; font-size: 10pt; line-height: 1.5em;"&gt;simply becomes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TIMEDIFF * 86400 &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;as SECONDS&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; 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="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;To get the milliseconds, it would be just&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; 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="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TIMEDIFF * 86400000 &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;as SECONDS&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; 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="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; 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="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 22:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/milliseconds/m-p/610440#M1104584</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-03-23T22:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: milliseconds</title>
      <link>https://community.qlik.com/t5/QlikView/milliseconds/m-p/610441#M1104585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt; already said:&lt;/P&gt;&lt;P&gt;always remember that timestamps and intervals are just floating point numbers with the integer part being full days and the fraction being the hours, minutes and seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 23:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/milliseconds/m-p/610441#M1104585</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-03-23T23:05:01Z</dc:date>
    </item>
  </channel>
</rss>

