<?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 Linear gauge, set min / max values depending on dimension value, help please in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linear-gauge-set-min-max-values-depending-on-dimension-value/m-p/183684#M48850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following pivot table, containing results for a number of different KPIs.&lt;/P&gt;&lt;P&gt;The KPIs 'Actual' and 'Target' values are calculated using formulae which i have stored in variables.&lt;/P&gt;&lt;P&gt;This works fine, results look like this.&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/-1773_sourceID:1773" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, i want ot add a linear gauge to the pivot to show how close to the target value we are. I have done this, setting the minimum on the gauge to 0, and the max to the Target value for the KPI, using the following nested IF statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(KPIRef = 'C2', $(vC2Target),&lt;BR /&gt; IF(KPIRef = 'C3', $(vC3Target),&lt;BR /&gt; IF(KPIRef = 'C4', $(vC4Target),&lt;BR /&gt; IF(KPIRef = 'C5', $(vC5Target),&lt;BR /&gt; IF(KPIRef = 'C6', $(vC6Target),&lt;BR /&gt; IF(KPIRef = 'C7', $(vC7Target),&lt;BR /&gt; IF(KPIRef = 'C8', $(vC8Target),&lt;BR /&gt; IF(KPIRef = 'C9', $(vC9Target)))))))))&lt;/P&gt;&lt;P&gt;I know this formula works, because i use the same for the Target expression in the table.&lt;/P&gt;&lt;P&gt;When i only have on KPI selected, the linear gauge appears as below:&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1774_sourceID:1774" /&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;BR /&gt;&lt;BR /&gt; &lt;P&gt;But when i select more than one KPI, it doesnt like it saying 'Bad min or max value in gauge'&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/-1775_sourceID:1775" /&gt;&lt;/P&gt;&lt;P&gt;Has anyone else come across this, is it possible to do what i'm trying to do? As i work my way through the KPIs selecting one at a time the gauge seems to update correctly, resetting the max value, but when more than one is picked it errors.&lt;/P&gt;&lt;P&gt;Can anyone advise?&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jun 2010 10:13:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-10T10:13:14Z</dc:date>
    <item>
      <title>Linear gauge, set min / max values depending on dimension value, help please</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-gauge-set-min-max-values-depending-on-dimension-value/m-p/183684#M48850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following pivot table, containing results for a number of different KPIs.&lt;/P&gt;&lt;P&gt;The KPIs 'Actual' and 'Target' values are calculated using formulae which i have stored in variables.&lt;/P&gt;&lt;P&gt;This works fine, results look like this.&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/-1773_sourceID:1773" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, i want ot add a linear gauge to the pivot to show how close to the target value we are. I have done this, setting the minimum on the gauge to 0, and the max to the Target value for the KPI, using the following nested IF statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(KPIRef = 'C2', $(vC2Target),&lt;BR /&gt; IF(KPIRef = 'C3', $(vC3Target),&lt;BR /&gt; IF(KPIRef = 'C4', $(vC4Target),&lt;BR /&gt; IF(KPIRef = 'C5', $(vC5Target),&lt;BR /&gt; IF(KPIRef = 'C6', $(vC6Target),&lt;BR /&gt; IF(KPIRef = 'C7', $(vC7Target),&lt;BR /&gt; IF(KPIRef = 'C8', $(vC8Target),&lt;BR /&gt; IF(KPIRef = 'C9', $(vC9Target)))))))))&lt;/P&gt;&lt;P&gt;I know this formula works, because i use the same for the Target expression in the table.&lt;/P&gt;&lt;P&gt;When i only have on KPI selected, the linear gauge appears as below:&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1774_sourceID:1774" /&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;BR /&gt;&lt;BR /&gt; &lt;P&gt;But when i select more than one KPI, it doesnt like it saying 'Bad min or max value in gauge'&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/-1775_sourceID:1775" /&gt;&lt;/P&gt;&lt;P&gt;Has anyone else come across this, is it possible to do what i'm trying to do? As i work my way through the KPIs selecting one at a time the gauge seems to update correctly, resetting the max value, but when more than one is picked it errors.&lt;/P&gt;&lt;P&gt;Can anyone advise?&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 10:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-gauge-set-min-max-values-depending-on-dimension-value/m-p/183684#M48850</guid>
      <dc:creator />
      <dc:date>2010-06-10T10:13:14Z</dc:date>
    </item>
    <item>
      <title>Linear gauge, set min / max values depending on dimension value, help please</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-gauge-set-min-max-values-depending-on-dimension-value/m-p/183685#M48851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The gauge minimum and maximum are set once for the entire table, not once for each row of the table. So if more than one KPI is visible in the table, your IF() expression returns null(), resulting in the error.&lt;/P&gt;&lt;P&gt;The way around it is to divide your column expression by the applicable target to get a percentage (Performance = Actual / Target). Set your linear gauge maximum to a maximum of 1, and it will display the linear gauge like you want to see it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jun 2010 01:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-gauge-set-min-max-values-depending-on-dimension-value/m-p/183685#M48851</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-12T01:21:44Z</dc:date>
    </item>
    <item>
      <title>Linear gauge, set min / max values depending on dimension value, help please</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-gauge-set-min-max-values-depending-on-dimension-value/m-p/183686#M48852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, thanks again for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jun 2010 22:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-gauge-set-min-max-values-depending-on-dimension-value/m-p/183686#M48852</guid>
      <dc:creator />
      <dc:date>2010-06-13T22:15:23Z</dc:date>
    </item>
    <item>
      <title>Linear gauge, set min / max values depending on dimension value, help please</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-gauge-set-min-max-values-depending-on-dimension-value/m-p/183687#M48853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! This solved my same issue in a minute - I had been struggling with it for hours!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 23:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-gauge-set-min-max-values-depending-on-dimension-value/m-p/183687#M48853</guid>
      <dc:creator />
      <dc:date>2011-04-04T23:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Linear gauge, set min / max values depending on dimension value, help please</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-gauge-set-min-max-values-depending-on-dimension-value/m-p/183688#M48854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the Min set to ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 16:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-gauge-set-min-max-values-depending-on-dimension-value/m-p/183688#M48854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-04T16:16:15Z</dc:date>
    </item>
  </channel>
</rss>

