<?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 Unable to get correct Average time Gauge Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unable-to-get-correct-Average-time-Gauge-Chart/m-p/457569#M559168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Gauge Chart that looks like a speedometer, which I need to represent my average fix times.&amp;nbsp; I have a field called (fix_time_true), which pulls out the fix time on each incident.&amp;nbsp; However in my guage chart, the speedometer shows correct, however in the Presentation Tab -&amp;gt; and text in chart section, I have the following code - =avg(fix_time_true).&amp;nbsp; However this pulls it out as 0.0464400008 and it should show an average of 1:06:52.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The fix time is in seconds and in the load script I ran the following ,interval(time(fix_time/86400, 'hh:mm:ss')) as fix_time_true.&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;Jon Ditchfield&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 11:16:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-14T11:16:14Z</dc:date>
    <item>
      <title>Unable to get correct Average time Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-correct-Average-time-Gauge-Chart/m-p/457569#M559168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Gauge Chart that looks like a speedometer, which I need to represent my average fix times.&amp;nbsp; I have a field called (fix_time_true), which pulls out the fix time on each incident.&amp;nbsp; However in my guage chart, the speedometer shows correct, however in the Presentation Tab -&amp;gt; and text in chart section, I have the following code - =avg(fix_time_true).&amp;nbsp; However this pulls it out as 0.0464400008 and it should show an average of 1:06:52.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The fix time is in seconds and in the load script I ran the following ,interval(time(fix_time/86400, 'hh:mm:ss')) as fix_time_true.&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;Jon Ditchfield&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 11:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-get-correct-Average-time-Gauge-Chart/m-p/457569#M559168</guid>
      <dc:creator />
      <dc:date>2013-05-14T11:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get correct Average time Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-correct-Average-time-Gauge-Chart/m-p/457570#M559170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you already tried somthing simple like =time(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;avg(fix_time_true)&lt;/SPAN&gt;)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 11:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-get-correct-Average-time-Gauge-Chart/m-p/457570#M559170</guid>
      <dc:creator />
      <dc:date>2013-05-14T11:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get correct Average time Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-correct-Average-time-Gauge-Chart/m-p/457571#M559171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help mrdaan, I was being a bit of an idiot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&amp;nbsp; I was looking at my times and then trying to work out the average so for example I was trying to work out the average of 00:00:01 and 00:00:03, which obviously would be 00:00:02.&amp;nbsp; However I forgot that the list box I am using to look at the fix time only contains the distinct time.&amp;nbsp; I noticed that there was probably 15 00:00:01 and only one 00:00:03.&amp;nbsp; &lt;/P&gt;&lt;P&gt;In the end I had to run =interval(time(avg(fix_time_true))) as some of my times are over 24 hours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 12:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-get-correct-Average-time-Gauge-Chart/m-p/457571#M559171</guid>
      <dc:creator />
      <dc:date>2013-05-14T12:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get correct Average time Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-correct-Average-time-Gauge-Chart/m-p/457572#M559173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on another note. It's advisable to keep your load script as simple and plain as possible, i.e.: in seconds or with timestamps. your fixtime will then be timestamp_end-timestamp_begin which will return an integer. All the necessary formatting can then be done in the front-end, this will save time-consuming errors and keep your scripts simple. It will also allow you to build faster apps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 12:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-get-correct-Average-time-Gauge-Chart/m-p/457572#M559173</guid>
      <dc:creator />
      <dc:date>2013-05-14T12:15:23Z</dc:date>
    </item>
  </channel>
</rss>

