<?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() seconds to Num Format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/597240#M221163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have added that I need to multiple the resulting seconds by a dollar amount. This helps to get the total number of seconds, but I still need the result to be in a number format to perform additional calculations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like the this might actually get the correct answer:&lt;/P&gt;&lt;P&gt;Num(Interval('9:08:15 AM' - '9:07:42 AM', 'ss')&amp;nbsp; *24*60*60)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Feb 2014 23:06:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-17T23:06:41Z</dc:date>
    <item>
      <title>Interval() seconds to Num Format</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/597238#M221161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to convert the difference between two time stamps (in seconds) to the Num() format so that I can perform calculations using the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the interval function to calculate the number of seconds between two time stamps:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;Interval&lt;/SPAN&gt;('9:08:15 AM' - '9:07:42 AM', 'ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result for the above example is 33 seconds, which is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to add a number from another field to those seconds. For example, add 5 to the result above. If I try to perform this addition, the interval value reverts to a time decimal. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5 + &lt;SPAN style="color: #3366ff;"&gt;Interval&lt;/SPAN&gt;('9:08:15 AM' - '9:07:42 AM', 'ss') = 15.000381944444&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result I am looking for is 38 seconds. Using any combination of Num() and Text() has not helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 22:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/597238#M221161</guid>
      <dc:creator />
      <dc:date>2014-02-17T22:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Interval() seconds to Num Format</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/597239#M221162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Interval('9:08:15 AM' - '9:07:42 AM' + maketime(0,0,5), 'ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 22:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/597239#M221162</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-17T22:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Interval() seconds to Num Format</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/597240#M221163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have added that I need to multiple the resulting seconds by a dollar amount. This helps to get the total number of seconds, but I still need the result to be in a number format to perform additional calculations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like the this might actually get the correct answer:&lt;/P&gt;&lt;P&gt;Num(Interval('9:08:15 AM' - '9:07:42 AM', 'ss')&amp;nbsp; *24*60*60)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 23:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/597240#M221163</guid>
      <dc:creator />
      <dc:date>2014-02-17T23:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Interval() seconds to Num Format</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/597241#M221164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, QV time and date values are numbers and stored as fractions of days.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Interval('9:08:15 AM' - '9:07:42 AM', 'ss') is just formatting the underlying number ( a small fraction)&amp;nbsp; as text showing 33.&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;So you need to multiply the underlying number with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;24*60*60 to get a number 'in seconds', or you could try&lt;/SPAN&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;&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;Num#(Interval('9:08:15 AM' - '9:07:42 AM', 'ss')&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;&lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 23:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/597241#M221164</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-17T23:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Interval() seconds to Num Format</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/597242#M221165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think&lt;/P&gt;&lt;P&gt;=interval(Timestamp#('09:08:15 AM', 'hh:mm:ss tt') - Timestamp#('9:07:42 AM', 'hh:mm:ss tt') + interval#(5, 'ss'), 'ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 23:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/597242#M221165</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-17T23:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Interval() seconds to Num Format</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/2109029#M1224448</link>
      <description>&lt;P&gt;Uggghhhh so many times in the past I struggled and couldn't understand why NUM didn't give me what I wanted. Num# is the key. Glad I found this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 12:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-seconds-to-Num-Format/m-p/2109029#M1224448</guid>
      <dc:creator>Dalton_Ruer</dc:creator>
      <dc:date>2023-08-23T12:47:03Z</dc:date>
    </item>
  </channel>
</rss>

