<?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: Number format time function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Number-format-time-function/m-p/344646#M495216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Stefan.&lt;/P&gt;&lt;P&gt;You helped me out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Henco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Mar 2012 07:32:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-03-10T07:32:27Z</dc:date>
    <item>
      <title>Number format time function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-time-function/m-p/344642#M495212</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;From the Google Analytics API I get total visits and total time on site. When I divide the total time on site by total visits I expect the average time on site.&lt;/P&gt;&lt;P&gt;But, and here is the question, the total time is: &lt;SPAN style="color: #000000; text-align: -webkit-auto; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;1.014374E7. This number supposed to be the total seconds. But when I make an expression timeOnSite / visits it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: -webkit-auto; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;I have already tried to format it into: interval(num#(metric_timeOnSite, '#.#' ,'.',',')/(24*60*60),'h:mm:ss'), but that gives me null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: -webkit-auto; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Any thoughts on this? Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: -webkit-auto; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: -webkit-auto; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Henco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-align: -webkit-auto; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 10:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-time-function/m-p/344642#M495212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-09T10:18:11Z</dc:date>
    </item>
    <item>
      <title>Number format time function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-time-function/m-p/344643#M495213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you tried with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interval(num(metric_timeOnSite)/(24*60*60),'h:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it didn't works then try with this.&lt;/P&gt;&lt;P&gt;interval((num(SubField(metric_timeOnSite,'E',1))*pow(10,SubField(metric_timeOnSite,'E',2)))/(24*60*60),'h:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 10:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-time-function/m-p/344643#M495213</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-09T10:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Number format time function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-time-function/m-p/344644#M495214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambarasan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Unfortunately both of them don't work.&lt;/P&gt;&lt;P&gt;Find attached the sample document, with the values in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Henco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 11:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-time-function/m-p/344644#M495214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-09T11:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Number format time function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-time-function/m-p/344645#M495215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please take care of the decimal point format and thousand separator. Again, I think the initial load used the wrong settings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fixed this with a num#() function, but I would prefer to handle this with standard format settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can evaluate your timeOnSite to get the scientific notation correctly in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see also attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 23:10:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-time-function/m-p/344645#M495215</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-09T23:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Number format time function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-time-function/m-p/344646#M495216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Stefan.&lt;/P&gt;&lt;P&gt;You helped me out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Henco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 07:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-time-function/m-p/344646#M495216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-10T07:32:27Z</dc:date>
    </item>
  </channel>
</rss>

