<?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: Variable value for Max option in Gauge chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426479#M158881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have found solutions as suggested by Steve, we are using If(Only .. condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, now when I view the entire company data in the gauge chart, it is throwing error of Bad min max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The If funciton is working fine when I select individual Product category, but when I make a complete selection og Product category or when I do not select any values in the Product category, we are getting the error of "Bad min max value in Gauge"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 May 2013 08:52:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-31T08:52:37Z</dc:date>
    <item>
      <title>Variable value for Max option in Gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426473#M158875</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;We have created a Gauge chart which shows the data of the compnay correclty. We are also able to mark the segment properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, we get stuck, when we try to give variable (changing) values to MAX option in gauge chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our requirement is to make the value of MAX change when the user click on a specific product. As the target for each product will be different and we want to make the max value change per very product in a single gauge chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We used the "if" condition but it failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 05:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426473#M158875</guid>
      <dc:creator />
      <dc:date>2013-05-31T05:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable value for Max option in Gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426474#M158876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please attach sample file..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 05:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426474#M158876</guid>
      <dc:creator />
      <dc:date>2013-05-31T05:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Variable value for Max option in Gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426475#M158877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let use this sample expression for your variable:&lt;/P&gt;&lt;P&gt;=If(IsNull(GetFieldSelections(ProductField)),Sum(Amount),Max(Value))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 06:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426475#M158877</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-05-31T06:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Variable value for Max option in Gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426476#M158878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fellows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the sample file here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 06:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426476#M158878</guid>
      <dc:creator />
      <dc:date>2013-05-31T06:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Variable value for Max option in Gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426477#M158879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where are the values coming from for the Max of each product?&amp;nbsp; Are they hard coded or derived from the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are hard coded something like this will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Only(Product) = 'Ham', 2000, if(Only(Product) = 'Cheese', 3000, 2500))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can nest the if statement as many times as you need.&amp;nbsp; The final number is what is used if more than one product is selected or possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the Max is derived from the data then you could us an aggregation to get there:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Max(ProductMax)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=Avg(ProductMax)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the gauge only makes sense when a single Product is selected then you can use the Calculation Condition or the Show Condition to hide the object or show an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, gauges are more hard to comprehend quickly if the max bound is moving about - but sometimes it is a requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.quickintelligence.co.uk/"&gt;http://www.quickintelligence.co.uk/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 08:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426477#M158879</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-05-31T08:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variable value for Max option in Gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426478#M158880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BULLS EYE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The if function worked in our max expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot guys for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 08:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426478#M158880</guid>
      <dc:creator />
      <dc:date>2013-05-31T08:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable value for Max option in Gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426479#M158881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have found solutions as suggested by Steve, we are using If(Only .. condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, now when I view the entire company data in the gauge chart, it is throwing error of Bad min max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The If funciton is working fine when I select individual Product category, but when I make a complete selection og Product category or when I do not select any values in the Product category, we are getting the error of "Bad min max value in Gauge"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 08:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426479#M158881</guid>
      <dc:creator />
      <dc:date>2013-05-31T08:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable value for Max option in Gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426480#M158882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have the final number in the IF statement, stating which value to use if there are multiple Product Categories selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=if(Only(Product) = 'Ham', 2000, if(Only(Product) = 'Cheese', 3000, &lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;2500&lt;/STRONG&gt;&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Steve&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 09:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426480#M158882</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-05-31T09:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Variable value for Max option in Gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426481#M158883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Steve, got the issue resolved. Thanks for yout kind help.&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;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 09:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-value-for-Max-option-in-Gauge-chart/m-p/426481#M158883</guid>
      <dc:creator />
      <dc:date>2013-05-31T09:21:13Z</dc:date>
    </item>
  </channel>
</rss>

