<?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: Calculation in a Gauge Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307856#M1187258</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it does not work L.&amp;nbsp; I think there’s something fishy about my formula or script, I’ve splitted the formula to understand it better:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Destination={BJS}&amp;gt;} TransitTime), I get the total transittime of 881. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now there is the first problem. I should add an extra day to the transittime, but when I do that, Qlikview goes crazy &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I had to remove the “+1” to get the below sum result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total shipments is ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So if I do&amp;nbsp; Sum({&amp;lt;Destination={BJS}&amp;gt;} TransitTime)/Count({&amp;lt;Destination={BJS}&amp;gt;} Destination)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( 881 / 235) = 3.74 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the maximum days should not exceed 8. I divide it by 8:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Destination={BJS}&amp;gt;} TransitTime)/Count({&amp;lt;Destination={BJS}&amp;gt;} Destination) /8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I divide 3.74/8=0.4675. average of 47%. The calculation maybe correct, but since there are not more than 3 shipments with delay, the average on time should be above 95%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong? L Should I count only the shipments that are late and divide them by the total shipments?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help so far!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;isam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2011 09:20:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-09-01T09:20:29Z</dc:date>
    <item>
      <title>Calculation in a Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307847#M1187249</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 created a gauge chart wherin I'm trying to calculate the average leadtime of all the shipments to Beijing. However my formula does not work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿Avg(Count(All{&amp;lt;Destination={BJS}&amp;gt;} TransitTime +1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose I want to express this in percentage, would the below formula work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿Avg(Count(All{&amp;lt;Destination={BJS}&amp;gt;} TransitTime +1)) / Count(Total TransitTime)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iSam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 14:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307847#M1187249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-29T14:13:30Z</dc:date>
    </item>
    <item>
      <title>Calculation in a Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307848#M1187250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; probably this will help u&lt;/P&gt;&lt;P&gt;﻿﻿Avg(Count(All{&amp;lt;Destination={'BJS'}&amp;gt;} TransitTime +1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make BJS in single code &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 14:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307848#M1187250</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-08-29T14:17:20Z</dc:date>
    </item>
    <item>
      <title>Calculation in a Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307849#M1187251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello iSam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your case you calculate the average transittime to Beijing and divide them by the total numbers of all transittime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Destination={BJS}&amp;gt;} TransitTime +1)/Count(({&amp;lt;Destination={BJS}&amp;gt;}TransitTime)&lt;/P&gt;&lt;P&gt;so you add the transittime and devide them by the number of transits to Beijing.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 14:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307849#M1187251</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-08-29T14:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in a Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307850#M1187252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!! It works!! However when I try to express this in percentage I get the wrong number:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to add something else to the formula?: Sum({&amp;lt;Destination={BJS}&amp;gt;} TransitTime +1)/Count(({&amp;lt;Destination={BJS}&amp;gt;}TransitTime) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;800% should be 100% max. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;isAm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 15:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307850#M1187252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-29T15:13:18Z</dc:date>
    </item>
    <item>
      <title>Calculation in a Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307851#M1187253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Destination={'BJS'}&amp;gt;} TransitTime +1)/Count({&amp;lt;Destination={'BJS'}&amp;gt;}TransitTime) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this may help u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 15:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307851#M1187253</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-08-29T15:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in a Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307852#M1187254</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; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help! It’s however the same expression as posted before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 15:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307852#M1187254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-29T15:40:57Z</dc:date>
    </item>
    <item>
      <title>Calculation in a Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307853#M1187255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hm,&lt;/P&gt;&lt;P&gt;let me calculate.&lt;/P&gt;&lt;P&gt;for example 500 minutes transit time devide by 100 transports = 5 min average.&lt;/P&gt;&lt;P&gt;This is the result of your formula. &lt;/P&gt;&lt;P&gt;What is to be shown in percentage?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 06:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307853#M1187255</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-08-30T06:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in a Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307854#M1187256</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; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I look at it from my perspective I would say that for example the maximum amount of days should not exceed 7 days. Since the average is 5 days, I would divide 5 by 7 and multiply it with 100 %. That means that approximately  71 percent is on time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And your example &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; J&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example 500 minutes transit time divide by 100 transports = 5 min average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the result of your formula. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is to be shown in percentage? The percentage should be 20 percent J&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iSam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 11:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307854#M1187256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-31T11:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in a Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307855#M1187257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; So 20 percent of my example is&lt;/P&gt;&lt;P&gt;1/(Sum({&amp;lt;Destination={BJS}&amp;gt;} TransitTime +1)/Count(({&amp;lt;Destination={BJS}&amp;gt;}TransitTime))&lt;/P&gt;&lt;P&gt;=1/(500/100)=1/5=0.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in your example use&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Destination={BJS}&amp;gt;} TransitTime +1)/Count(({&amp;lt;Destination={BJS}&amp;gt;}TransitTime))/7&lt;/P&gt;&lt;P&gt;=(500/100)/7=5/7=0.71&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both shown as percentage in the number options&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 11:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307855#M1187257</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-08-31T11:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in a Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307856#M1187258</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it does not work L.&amp;nbsp; I think there’s something fishy about my formula or script, I’ve splitted the formula to understand it better:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Destination={BJS}&amp;gt;} TransitTime), I get the total transittime of 881. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now there is the first problem. I should add an extra day to the transittime, but when I do that, Qlikview goes crazy &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I had to remove the “+1” to get the below sum result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total shipments is ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So if I do&amp;nbsp; Sum({&amp;lt;Destination={BJS}&amp;gt;} TransitTime)/Count({&amp;lt;Destination={BJS}&amp;gt;} Destination)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( 881 / 235) = 3.74 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the maximum days should not exceed 8. I divide it by 8:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Destination={BJS}&amp;gt;} TransitTime)/Count({&amp;lt;Destination={BJS}&amp;gt;} Destination) /8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I divide 3.74/8=0.4675. average of 47%. The calculation maybe correct, but since there are not more than 3 shipments with delay, the average on time should be above 95%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong? L Should I count only the shipments that are late and divide them by the total shipments?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help so far!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;isam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 09:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307856#M1187258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-01T09:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in a Gauge Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307857#M1187259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MartinPhol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’ve solved the problem J The problem was in the gauge settings and in the formula J.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate all your help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iSam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 14:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-Gauge-Chart/m-p/307857#M1187259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-01T14:37:41Z</dc:date>
    </item>
  </channel>
</rss>

