<?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 KPI meter with calculated values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916515#M990351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm Trying to create a KPI meter with a gauge chart.&lt;/P&gt;&lt;P&gt;Through use of variables I want to show de full 100% of the percentage in grey and when the % is higher or equal to 99.96 the meter has to be green, else red by using the variables&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my percentage is 99.97 the meter must be green for that amount en the rest of the 100% (0.03 %) has to be grey.&lt;/P&gt;&lt;P&gt;I'm trying to achief that in the presentation tab with the use of Segments Setup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Segment 1&lt;/SPAN&gt; --&amp;gt; Calculated Color is the result of the variable (vKPI_Foute_Ladingen_Color)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((1-(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[DelayC]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=99,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Jit_Transport_Nbr]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Jit_Transport_Nbr]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;999,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Jit_Transport_Nbr]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))))) *100 , '##.##%') &amp;gt;= 99.96, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Green&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LightRed&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Segment 2&lt;/SPAN&gt; is the rest of the 100% that needs to be grey&amp;nbsp; (0.03).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm sending My effort in an attachement, it's not completely like I want it but I can't find what I'm doing wrong.&lt;/P&gt;&lt;P&gt;I've also added my txt file that's been loaded into the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me out please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ambertje&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2015 15:28:55 GMT</pubDate>
    <dc:creator>amber2000</dc:creator>
    <dc:date>2015-07-27T15:28:55Z</dc:date>
    <item>
      <title>KPI meter with calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916515#M990351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm Trying to create a KPI meter with a gauge chart.&lt;/P&gt;&lt;P&gt;Through use of variables I want to show de full 100% of the percentage in grey and when the % is higher or equal to 99.96 the meter has to be green, else red by using the variables&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my percentage is 99.97 the meter must be green for that amount en the rest of the 100% (0.03 %) has to be grey.&lt;/P&gt;&lt;P&gt;I'm trying to achief that in the presentation tab with the use of Segments Setup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Segment 1&lt;/SPAN&gt; --&amp;gt; Calculated Color is the result of the variable (vKPI_Foute_Ladingen_Color)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((1-(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[DelayC]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=99,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Jit_Transport_Nbr]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Jit_Transport_Nbr]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;999,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Jit_Transport_Nbr]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))))) *100 , '##.##%') &amp;gt;= 99.96, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Green&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LightRed&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Segment 2&lt;/SPAN&gt; is the rest of the 100% that needs to be grey&amp;nbsp; (0.03).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm sending My effort in an attachement, it's not completely like I want it but I can't find what I'm doing wrong.&lt;/P&gt;&lt;P&gt;I've also added my txt file that's been loaded into the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me out please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ambertje&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 15:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916515#M990351</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2015-07-27T15:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: KPI meter with calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916516#M990352</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've made a couple of minor changes to your guage...I think it gives you what you want...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Azam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 16:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916516#M990352</guid>
      <dc:creator>a_mullick</dc:creator>
      <dc:date>2015-07-27T16:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: KPI meter with calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916517#M990353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Azam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's working indeed, Thank you so much.&lt;/P&gt;&lt;P&gt;Now I would like to ask you why you have set the Gauge settings Max&amp;nbsp; to 105 and why the the variable in segment1 has ( )&amp;nbsp; and the variable in segment2 has no ( )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ambertje&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 10:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916517#M990353</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2015-07-28T10:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: KPI meter with calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916518#M990355</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;The Guage settings Max was set to 2 in your test example, but the expression was factoring the ratio by 100 to generate a % value, so asumming there is nothing odd in your data the gauge should always range from 0 to 100. The small issue is that 0.03% is &lt;EM style="text-decoration: underline;"&gt;very&lt;/EM&gt; small, so when you set the max size to 100, you can't really see the grey, I set it to 105 to emphasize the grey, although 101 will work ok as well - however, you need to bear this in mind...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for segment 2, there was no reason about leaving the () off, with or wothout is fine in this case, the main thing was that you originally defined the segment 2 lower bound with you colour variable rather than your expression variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Azam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 10:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916518#M990355</guid>
      <dc:creator>a_mullick</dc:creator>
      <dc:date>2015-07-28T10:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: KPI meter with calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916519#M990357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a million for your help I understand it perfectly now &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 11:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916519#M990357</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2015-07-28T11:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: KPI meter with calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916520#M990359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Azam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to bother you again but after serious testing I saw a problem which I can't solve on my own.&lt;/P&gt;&lt;P&gt;When I select a single Calendar_Day 31/01/2015 (where the result is a 100%) the meter shows 1e+004%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Idea how I can solve this please???&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ambertje&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 14:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916520#M990359</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2015-07-28T14:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: KPI meter with calculated values</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916521#M990361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ambertje,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I can see the issue, but you'll need to double check and make sure I'm right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've altered your basic expression to be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num((1-(count((if([DelayC]=99,[Jit_Transport_Nbr])))/count((if([Jit_Transport_Nbr]&amp;lt;999,[Jit_Transport_Nbr])))))&amp;nbsp; , '##,##%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've removed the '*100', because the '%' in the number format sort of does this for you i.e. factors a number by 100...I didn't appreciate this at first glance, because the numbers sort of looked ok. As a consequence the guage is not now set from 0 to 1 (Min and Max). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also looks like you're in Northern Europe somewhere, so I think your default settings are ',' (comma) for a decimal seperator, and '.' (stop) for thousands seperator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Azam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 14:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-meter-with-calculated-values/m-p/916521#M990361</guid>
      <dc:creator>a_mullick</dc:creator>
      <dc:date>2015-07-28T14:56:32Z</dc:date>
    </item>
  </channel>
</rss>

