<?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: Covert seconds INTO Hours and a decimal for minutes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625019#M229928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes that was the problem, I had tried this earlier and I got the same result as what you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I did not understand why I was getting it, now it makes sense&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&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;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 19:05:04 GMT</pubDate>
    <dc:creator>rustyfishbones</dc:creator>
    <dc:date>2014-02-24T19:05:04Z</dc:date>
    <item>
      <title>Covert seconds INTO Hours and a decimal for minutes</title>
      <link>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625014#M229923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have calculated the number of seconds from one time to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field called NewPickTime and when I sum the TOTAL seconds between 2 times I get an answer of 1787491&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to convert this into hours and minutes, but as a decimal, so it would be 496.5253&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try I keep getting weird numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this in my script to calculate the number of seconds. This is correct and I have verified it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTERVAL(EndTime-TIME(RANGEMAX(EndPreviousTime, EndTime-RANGEMIN(PickTime, '00:05:00'))),'s') AS NewPickTime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I create a text object and say =SUM(NewPickTime)/60/60 I get a result of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-02-24_1726.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53759_2014-02-24_1726.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of 496.5253.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas as to what I am doing wrong here?&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;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625014#M229923</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-02-24T17:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Covert seconds INTO Hours and a decimal for minutes</title>
      <link>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625015#M229924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a sample file with this issue?&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;Luis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625015#M229924</guid>
      <dc:creator>luis_pimentel</dc:creator>
      <dc:date>2014-02-24T17:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Covert seconds INTO Hours and a decimal for minutes</title>
      <link>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625016#M229925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your answer 1787491 is actually a value of 20.668 days formatted to be shown as seconds. Then interval function returns a number of days and formats it as seconds because of the 's'. So you're off by a factor of 24. Try multiplying NewPickTime by 24.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625016#M229925</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-02-24T17:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Covert seconds INTO Hours and a decimal for minutes</title>
      <link>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625017#M229926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alan,&lt;/P&gt;&lt;P&gt;NewPickTime contains duration in seconds&lt;/P&gt;&lt;P&gt;Sum(NewPickTime) should also contain seconds but it is not the case: it will return a hh:mm;ss format. If you divide it by 3600, you will get very strange result (I did get strange results)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use interval a second time: &lt;STRONG&gt;sum(interval(newpicktime, 's'))/60/60&lt;/STRONG&gt; to get hrs (but I think you need an extra /24 to get the part of the day)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625017#M229926</guid>
      <dc:creator />
      <dc:date>2014-02-24T17:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Covert seconds INTO Hours and a decimal for minutes</title>
      <link>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625018#M229927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could also try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;INTERVAL(EndTime-TIME(RANGEMAX(EndPreviousTime, EndTime-RANGEMIN(PickTime, '00:05:00'))),'s')&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625018#M229927</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-24T17:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Covert seconds INTO Hours and a decimal for minutes</title>
      <link>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625019#M229928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes that was the problem, I had tried this earlier and I got the same result as what you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I did not understand why I was getting it, now it makes sense&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&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;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Covert-seconds-INTO-Hours-and-a-decimal-for-minutes/m-p/625019#M229928</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-02-24T19:05:04Z</dc:date>
    </item>
  </channel>
</rss>

