<?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: Indicator graphic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375822#M1168277</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;Assuming that table has Business as its dimension, and the chart epression is Sum(Profit), change the expression to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Min(Aggr(Sum(Profit), Business))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work correctly for the normal rows and will return the minimum value for the total row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2012 11:55:05 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-07-31T11:55:05Z</dc:date>
    <item>
      <title>Indicator graphic</title>
      <link>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375818#M1168273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've created the following table with a red traffic light if the profit is negative:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Business&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Profit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Traffic light gauge&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Restaurant&lt;/TD&gt;&lt;TD&gt;10,000&lt;/TD&gt;&lt;TD&gt;green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bar&lt;/TD&gt;&lt;TD&gt;-3,000&lt;/TD&gt;&lt;TD&gt;red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Hotel&lt;/TD&gt;&lt;TD&gt;50,000&lt;/TD&gt;&lt;TD&gt;green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pub&lt;/TD&gt;&lt;TD&gt;-7,000&lt;/TD&gt;&lt;TD&gt;red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Supermarket&lt;/TD&gt;&lt;TD&gt;100,000&lt;/TD&gt;&lt;TD&gt;green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Min = -7,000&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;red&lt;/STRONG&gt; (since minimum is -7,000, which is negative)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, on the last row I have the minimum profit and a red traffic light gauge if at least one of the businesses have negative profit.&lt;/P&gt;&lt;P&gt;I cloned this table and I've been trying to create an indicator graphic (with a traffic light) that is red if minimum of those busenesses has negative profit (which means at least one business has a negative profit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't use min(Profit) since profit isn't a dimension, but an expression that can only be calculated if the table has the dimension business.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 10:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375818#M1168273</guid>
      <dc:creator />
      <dc:date>2012-07-31T10:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Indicator graphic</title>
      <link>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375819#M1168274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 10:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375819#M1168274</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2012-07-31T10:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Indicator graphic</title>
      <link>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375820#M1168275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I have problems validating my license and for the time being use personal edition, so I can't open the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 11:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375820#M1168275</guid>
      <dc:creator />
      <dc:date>2012-07-31T11:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Indicator graphic</title>
      <link>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375821#M1168276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Crate a straight table chart&lt;/P&gt;&lt;P&gt;Choose the dimension Business&lt;/P&gt;&lt;P&gt;Create formula 1 with syntax&lt;/P&gt;&lt;P&gt;if(dimensionality() =1,&lt;/P&gt;&lt;P&gt;sum(Profit),&lt;/P&gt;&lt;P&gt;min(aggr(sum(Profit),Business)))&lt;/P&gt;&lt;P&gt;create formula 2, same syntax.&lt;/P&gt;&lt;P&gt;Choose the visible state from text to traffic light and set the limits&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 11:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375821#M1168276</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2012-07-31T11:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Indicator graphic</title>
      <link>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375822#M1168277</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;Assuming that table has Business as its dimension, and the chart epression is Sum(Profit), change the expression to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Min(Aggr(Sum(Profit), Business))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work correctly for the normal rows and will return the minimum value for the total row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 11:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375822#M1168277</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-07-31T11:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Indicator graphic</title>
      <link>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375823#M1168278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan and Martin, thank you for your answers, but I'm affraid my Profit expression is a little complicated and doesn't work with your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is something like this:&lt;/P&gt;&lt;P&gt;=if(Credit_Limit&amp;gt;0 ,sum(Pendent)-sum(if((RegisteredYear='2012' and RegisteredMonth=$(Vmonth) ),Pendent,0))-sum(if((RegisteredYear='2012' and RegisteredMonth=$(Vmonth)-1 ),Pendent,0))-sum(if((RegisteredYear='2012' and RegisteredMonth=$(Vmonth)-2 ),Pendent,0))-Credit_Limit, 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 12:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375823#M1168278</guid>
      <dc:creator />
      <dc:date>2012-07-31T12:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Indicator graphic</title>
      <link>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375824#M1168279</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;Then the following should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Min(Aggr(&lt;/P&gt;&lt;P&gt; If(Credit_Limit&amp;gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sum(Pendent)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-sum(if((RegisteredYear='2012'and RegisteredMonth=$(Vmonth) ), Pendent,0))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-sum(if((RegisteredYear='2012' and RegisteredMonth=$(Vmonth)-1 ),Pendent,0))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-sum(if((RegisteredYear='2012' and RegisteredMonth=$(Vmonth)-2 ),Pendent,0))-Credit_Limit, 0),&lt;/P&gt;&lt;P&gt;Business))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are other dimensions, then replace "Business" with the list of dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Min(Aggr(........, dim1, dim2,&amp;nbsp; dim3))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 12:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375824#M1168279</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-07-31T12:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Indicator graphic</title>
      <link>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375825#M1168280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, your suggestion worked flawlessly. I am very grateful for your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 07:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indicator-graphic/m-p/375825#M1168280</guid>
      <dc:creator />
      <dc:date>2012-08-01T07:57:59Z</dc:date>
    </item>
  </channel>
</rss>

