<?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: Display a gauge for each value of a table in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348843#M807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best way is to use a set of syntax called Set Analysis - you will find lots of references to it on the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression for each gauge will be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;[ZE_value]={'Val1'}&amp;gt;}ValueField) / sum({&amp;lt;[ZE_value]=&amp;gt;}ValueField)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first part of the expression you are finding the value only where ZE_value = 'Val1', in the divisor it is finding the total for all values in the ZE_value field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to be aware of what this syntax has on making selections on this field.&amp;nbsp; The best thing to do is implement and then test to see what happens under various selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2012 12:43:55 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2012-05-14T12:43:55Z</dc:date>
    <item>
      <title>Display a gauge for each value of a table</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348838#M802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched a lot about that, but did not find anything. How can I display a gauge for each ZE_value of my table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P&gt;Of course my table can be filtered, so I will have to display sometimes more than two gauges...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your Help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2012 15:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348838#M802</guid>
      <dc:creator />
      <dc:date>2012-05-13T15:28:39Z</dc:date>
    </item>
    <item>
      <title>Display a gauge for each value of a table</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348839#M803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create your expression, like sum(Value), then change the Representation under display options in expression tab of your chart properties to the gauge style you like (e.g. linear gauge) and adapt the gauge settings available after setting a gauge representation via button. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2012 15:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348839#M803</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-13T15:37:16Z</dc:date>
    </item>
    <item>
      <title>Display a gauge for each value of a table</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348840#M804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to have a fixed max value to make your gauge work sensibly - percentage of a whole tends to work well - for example.&amp;nbsp; If the max value can shift about (as it would with a simple sum) then you need to work out what the maximum value is on any row of the table.&amp;nbsp; This gets a bit more complex, but can be done by using the aggr statement, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=max(aggr(sum(Value), [Dimension 1], [Dimension 2], [Dimension 3])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where 'sum(Value)' is your original expression and Dimension 1 - 3 are the dimesnion fields in your table.&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>Sun, 13 May 2012 16:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348840#M804</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-05-13T16:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display a gauge for each value of a table</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348841#M805</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;Try the attach application. The important&amp;nbsp; factor is hthe setting that you need to do in Gauage setting. I have attach the snap shot of the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2012 17:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348841#M805</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2012-05-13T17:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Display a gauge for each value of a table</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348842#M806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody, thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It helps me a lot, but I think I wasn't precise enough: I would like to have the possibility to filter the product for example, and then to get the values in the gauges separately, and not in the table. And that's really the trick I don't understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if I filter on product B, two gauges should be displayed. I know how to hide the gauges A, with a condition, but not the expression I have to write to display the values A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for your help, Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="14210" alt="Unbenannt.PNG" class="jive-image-thumbnail jive-image" height="260" src="https://community.qlik.com/legacyfs/online/14210_Unbenannt.PNG" width="618" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 12:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348842#M806</guid>
      <dc:creator />
      <dc:date>2012-05-14T12:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Display a gauge for each value of a table</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348843#M807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best way is to use a set of syntax called Set Analysis - you will find lots of references to it on the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression for each gauge will be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;[ZE_value]={'Val1'}&amp;gt;}ValueField) / sum({&amp;lt;[ZE_value]=&amp;gt;}ValueField)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first part of the expression you are finding the value only where ZE_value = 'Val1', in the divisor it is finding the total for all values in the ZE_value field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to be aware of what this syntax has on making selections on this field.&amp;nbsp; The best thing to do is implement and then test to see what happens under various selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 12:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348843#M807</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-05-14T12:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Display a gauge for each value of a table</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348844#M808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it will be very difficult to get the separate gauges to display the values that you want.&amp;nbsp; It may be possible to do it with a rank statement and working out which values are appearing where in the table - but I wouldn't want to say for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best bet, I would say, is to go back to the original idea of showing the gauges in-line in your table.&amp;nbsp; This way as the dimensionality changes based on selections the gauges shown will change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached an example that I hope will help.&amp;nbsp; Note that you need to configure the colour segments for the gauges after selecting the second expression on the expressions tab.&amp;nbsp; It is also critical that the expression for the max gauge value gives the right value based on the dimensions in the table.&amp;nbsp; Hopefully this will make sense when you see the example.&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>Tue, 15 May 2012 22:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348844#M808</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-05-15T22:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Display a gauge for each value of a table</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348845#M809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I've found the solution, you can see the document attached Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've simply defined an ID in the table, and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first_gauge: =sum({$&amp;lt;Ziel_ID={$(=min(Ziel_ID, 1))}&amp;gt;} ZE_value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second_gauge: =sum({$&amp;lt;Ziel_ID={$(=min(Ziel_ID, 2))}&amp;gt;} ZE_value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a condition it's easy to hide the second gauge if only one value is selected in the table....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 11:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Display-a-gauge-for-each-value-of-a-table/m-p/348845#M809</guid>
      <dc:creator />
      <dc:date>2012-05-16T11:05:21Z</dc:date>
    </item>
  </channel>
</rss>

