<?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 Problem with gauge meter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-gauge-meter/m-p/209466#M587984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wouter,&lt;/P&gt;&lt;P&gt;you may see Flag = -1 because that's the numeric value of "true" in QlikView. So, if people are using boolean expressions without reversing the sign, they get -1.&lt;/P&gt;&lt;P&gt;If your flag is 1 or 0, you can do one of the two:&lt;/P&gt;&lt;P&gt;1. Using Set Analysis:&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;YTD_FLAG = {1} &amp;gt;} OMZET)-sum( {&amp;lt;TARGET_YTD_FLAG={1}&amp;gt;} TARGET))/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TARGET_YTD_FLAG={1}&amp;gt;} TARGET)&lt;/P&gt;&lt;P&gt;2. Or, if you want to avoid the SA syntax, simply this:&lt;/P&gt;&lt;P&gt;(sum(YTD_FLAG*OMZET)-sum(TARGET_YTD_FLAG * TARGET))/sum( TARGET_YTD_FLAG* TARGET)&lt;/P&gt;&lt;P&gt;When you multiply your values by the flag, those values associated with 1 will get included and those values associated with 0 will get excluded.&lt;/P&gt;&lt;P&gt;If you have a lot of data, Set Analysis is faster. If not, then multiplying by the flag is OK, but much better than 3 IF formulas.&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2011 04:59:00 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2011-04-12T04:59:00Z</dc:date>
    <item>
      <title>Problem with gauge meter</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-gauge-meter/m-p/209463#M587981</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;I am trying to build a gauge meter, according to the example of John Witherspoon. However my meter doesn't display the arrow.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-4067_sourceID:4067" /&gt;&lt;/P&gt;&lt;P&gt;I have the percentage, I have the YTD and the target. However the meter doesn't want to point at -35%.&lt;/P&gt;&lt;P&gt;I probably have not understood it correctly, but these are my formula's :&lt;/P&gt;&lt;P&gt;Meter or indicator (expression):&lt;/P&gt;&lt;P&gt;=(&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;sum(if(YTD_FLAG, OMZET))-sum(if(TARGET_YTD_FLAG, TARGET)))/sum(if(TARGET_YTD_FLAG, TARGET))&lt;/P&gt;&lt;P&gt;Percentage formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num((sum(if(YTD_FLAG, OMZET))-sum(if(TARGET_YTD_FLAG, TARGET)))/sum(if(TARGET_YTD_FLAG, TARGET )),'#,#%')&lt;/P&gt;&lt;P&gt;Anybody an idea? Unfortunately the data is so complex so I can't post a dataset.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 14:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-gauge-meter/m-p/209463#M587981</guid>
      <dc:creator />
      <dc:date>2011-04-11T14:36:09Z</dc:date>
    </item>
    <item>
      <title>Problem with gauge meter</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-gauge-meter/m-p/209464#M587982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds silly, but - have you selected "Show Needle" as your Indicator mode?&lt;/P&gt;&lt;P&gt;As a side comment - if you already have YTD flags, don't use IF() conditions, they are killing performance. Either use Set Analysis, or at least replace IF with simply multiplying by the flag. See this wiki page:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/wikis/qlikview-wiki/using-flags-to-avoid-if-formulas.aspx" target="_blank" title="http://community.qlik.com/wikis/qlikview-wiki/using-flags-to-avoid-if-formulas.aspx"&gt;http://community.qlik.com/wikis/qlikview-wiki/using-flags-to-avoid-if-formulas.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 14:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-gauge-meter/m-p/209464#M587982</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-04-11T14:50:55Z</dc:date>
    </item>
    <item>
      <title>Problem with gauge meter</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-gauge-meter/m-p/209465#M587983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;Thank you! It wasn't the solution. But when I restarted the dashboard to see if that wasn't the case, the needle suddenly was there.&lt;/P&gt;&lt;P&gt;So it works now!&lt;/P&gt;&lt;P&gt;Question about your side comment.&lt;/P&gt;&lt;P&gt;I saw in the examples -1 and 1 as flags. Which one to use and why. I have created the flags in my database, so I 'load' the data, including a YTD_FLAG which contains a 1 or a 0.&lt;/P&gt;&lt;P&gt;So, how would I remove the IF from this formula?&lt;/P&gt;&lt;P&gt;sum(if(YTD_FLAG, OMZET))-sum(if(TARGET_YTD_FLAG, TARGET)))/sum(if(TARGET_YTD_FLAG, TARGET))&lt;/P&gt;&lt;P&gt;Thanks for the help and time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 15:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-gauge-meter/m-p/209465#M587983</guid>
      <dc:creator />
      <dc:date>2011-04-11T15:17:27Z</dc:date>
    </item>
    <item>
      <title>Problem with gauge meter</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-gauge-meter/m-p/209466#M587984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wouter,&lt;/P&gt;&lt;P&gt;you may see Flag = -1 because that's the numeric value of "true" in QlikView. So, if people are using boolean expressions without reversing the sign, they get -1.&lt;/P&gt;&lt;P&gt;If your flag is 1 or 0, you can do one of the two:&lt;/P&gt;&lt;P&gt;1. Using Set Analysis:&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;YTD_FLAG = {1} &amp;gt;} OMZET)-sum( {&amp;lt;TARGET_YTD_FLAG={1}&amp;gt;} TARGET))/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TARGET_YTD_FLAG={1}&amp;gt;} TARGET)&lt;/P&gt;&lt;P&gt;2. Or, if you want to avoid the SA syntax, simply this:&lt;/P&gt;&lt;P&gt;(sum(YTD_FLAG*OMZET)-sum(TARGET_YTD_FLAG * TARGET))/sum( TARGET_YTD_FLAG* TARGET)&lt;/P&gt;&lt;P&gt;When you multiply your values by the flag, those values associated with 1 will get included and those values associated with 0 will get excluded.&lt;/P&gt;&lt;P&gt;If you have a lot of data, Set Analysis is faster. If not, then multiplying by the flag is OK, but much better than 3 IF formulas.&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 04:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-gauge-meter/m-p/209466#M587984</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-04-12T04:59:00Z</dc:date>
    </item>
    <item>
      <title>Problem with gauge meter</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-gauge-meter/m-p/209467#M587985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!!! That's a lot of help!!!&lt;/P&gt;&lt;P&gt;greetings,&lt;/P&gt;&lt;P&gt;Wouter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 08:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-gauge-meter/m-p/209467#M587985</guid>
      <dc:creator />
      <dc:date>2011-04-12T08:25:59Z</dc:date>
    </item>
  </channel>
</rss>

