<?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: interval time calculation dipaying lots of blanks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459049#M795162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; sorted everything using an order by statement and now things are working just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2018 11:01:44 GMT</pubDate>
    <dc:creator>isciberras</dc:creator>
    <dc:date>2018-01-10T11:01:44Z</dc:date>
    <item>
      <title>interval time calculation dipaying lots of blanks</title>
      <link>https://community.qlik.com/t5/QlikView/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459044#M795154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having difficulty calculation the time different between 2 fields containing a timestamp. Using the script below for some reason it populates some of the table but leaves a lot of blanks for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas why this might be happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interval (time - previous(time)) as [Difference]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Time&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;difference&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;User ID&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;13:10:15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;09:15:01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08:15:01&lt;/TD&gt;&lt;TD&gt;01:00:00&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459044#M795154</guid>
      <dc:creator>isciberras</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: interval time calculation dipaying lots of blanks</title>
      <link>https://community.qlik.com/t5/QlikView/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459045#M795155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;have u tried like this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interval(Previous(Time)-Time,'hh') as Diff;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 17:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459045#M795155</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2018-01-04T17:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: interval time calculation dipaying lots of blanks</title>
      <link>https://community.qlik.com/t5/QlikView/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459046#M795156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is result is what you want or is this what you are getting right now? Do you have another condition like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;If([User ID] = Previous([User ID],&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;interval (time - previous(time))) as [Difference]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 17:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459046#M795156</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-04T17:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: interval time calculation dipaying lots of blanks</title>
      <link>https://community.qlik.com/t5/QlikView/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459047#M795158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the solution didn't work for me. I tried some new&amp;nbsp; things to try get the desired output alone however I can't seem to solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main issue of my result is that the "previous" keyword only works well if the previous user in the list of records was the same person in the previous record, however in this situation because thre are many people logging in at the same time, records could be far apart from each other and I don't know how to first sort out the records according to user then use the previous statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you by any chance happen to know how to do this as I am really stuck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your continuous help,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 16:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459047#M795158</guid>
      <dc:creator>isciberras</dc:creator>
      <dc:date>2018-01-09T16:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: interval time calculation dipaying lots of blanks</title>
      <link>https://community.qlik.com/t5/QlikView/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459048#M795160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using a Order by statement to make sure that users are ordered before you use this if statement &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 16:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459048#M795160</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-09T16:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: interval time calculation dipaying lots of blanks</title>
      <link>https://community.qlik.com/t5/QlikView/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459049#M795162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; sorted everything using an order by statement and now things are working just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 11:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/interval-time-calculation-dipaying-lots-of-blanks/m-p/1459049#M795162</guid>
      <dc:creator>isciberras</dc:creator>
      <dc:date>2018-01-10T11:01:44Z</dc:date>
    </item>
  </channel>
</rss>

