<?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: Traffic Light Gauge - Unbounded Min/Max in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836181#M1011311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution I ended up implementing was a lower bound of -1.1 and an upper bound of 10000000.&amp;nbsp; Since this is percentage of sales, the chance of that value falling out of those bounds is pretty nonexistent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2015 19:18:30 GMT</pubDate>
    <dc:creator>JustinDallas</dc:creator>
    <dc:date>2015-05-04T19:18:30Z</dc:date>
    <item>
      <title>Traffic Light Gauge - Unbounded Min/Max</title>
      <link>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836176#M1011306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Traffic Light Gauge(TLG) in a chart of mine.&amp;nbsp; It basically compares the percent totals for sales as it's expression =&amp;gt; SUM(thisYearsSales) / SUM(lastYearsSales).&amp;nbsp; Clearly, this is an unbounded formula with Infinity being the upper bound, and negative Infinity being the lower bound since the business can actually have negative sales.&amp;nbsp; Unfortunately, when looking at the TLG Gauge Settings, I don't really&amp;nbsp; have a way to convey that with just Min/Max settings unless Qlikview has an +Infin/-Infin keyword that I don't know about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using the math.min function, but then Qlikview complains about nested aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this matter is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 19:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836176#M1011306</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2015-04-27T19:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Traffic Light Gauge - Unbounded Min/Max</title>
      <link>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836177#M1011307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use the Aggr() function.&lt;/P&gt;&lt;P&gt;The outer aggregation can be anything you want Max/Min/Sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum( Aggr( &lt;STRONG&gt;SUM(thisYearsSales) / SUM(lastYearsSales)&lt;/STRONG&gt; , Dimension))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 20:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836177#M1011307</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2015-04-27T20:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Traffic Light Gauge - Unbounded Min/Max</title>
      <link>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836178#M1011308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to implement your solution, but I can't wrap my head around how to make it work.&amp;nbsp; My original expression is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year={$(=Max(Year))}&amp;gt;}NetSalesDOM) / SUM({&amp;lt;Year={$(=Max(Year)-1)},CurPrevYTD={1}&amp;gt;}NetSalesDOM)\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what goes in the "Dimension" field of your solution.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 20:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836178#M1011308</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2015-04-27T20:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Traffic Light Gauge - Unbounded Min/Max</title>
      <link>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836179#M1011309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand what your trying to do to I think you may need the Aggr() function to gather or group all your percentages so then you can find a single Max/Min value that's dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Dimension field is where you place the field you wish to group the summation by. Think of Aggr as a grouping function that creates a virtual table which then can be aggregated upon by any other aggregation function it usually wrapped by another to get a single value.&lt;/P&gt;&lt;P&gt;There is a good blog post on this. I use it a lot when I need to use max and it needs to be used to find the upper bound of a gauge when a single Max function wont do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2967"&gt;AGGR...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/03/11/when-should-the-aggr-function-not-be-used" title="https://community.qlik.com/blogs/qlikviewdesignblog/2013/03/11/when-should-the-aggr-function-not-be-used"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2013/03/11/when-should-the-aggr-function-not-be-used&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="3744" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" href="https://community.qlik.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3857"&gt;QlikView Technical Brief - AGGR.docx&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;Most places in QlikView demand that you write your expression so that it returns &lt;SPAN style="font-style: inherit; text-decoration: underline; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;one single value&lt;/EM&gt;&lt;/SPAN&gt;. This means that you&lt;SPAN style="font-style: inherit; text-decoration: underline; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;must&lt;/EM&gt;&lt;/SPAN&gt; wrap the Aggr function in an aggregation function to get a meaningful result. The only exception is if you use the Aggr function to define a calculated dimension or field. This means that you have &lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;two&lt;/EM&gt;&lt;/SPAN&gt; aggregation steps; one nested in the other:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;&lt;A href="/legacyfs/online/85222_Legend 2XS.png"&gt;&lt;IMG __jive_id="85222" alt="Legend 2XS.png" class="jive-image" height="40" src="/legacyfs/online/85222_Legend 2XS.png" style="margin: 2px 0 10px 15px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="146" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Avg&lt;/STRONG&gt;&lt;/SPAN&gt;( &lt;SPAN style="color: #ff0000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Aggr&lt;/STRONG&gt;&lt;/SPAN&gt;( &lt;SPAN style="color: #0000ff; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Sum&lt;/STRONG&gt;&lt;/SPAN&gt;( Amount ), Month ) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 13:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836179#M1011309</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2015-04-28T13:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Traffic Light Gauge - Unbounded Min/Max</title>
      <link>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836180#M1011310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Drillnaut,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did the info above help you determine if AGGR will help?&lt;/P&gt;&lt;P&gt;Mark as Helpful or Answered if it answered your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 13:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836180#M1011310</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2015-04-29T13:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Traffic Light Gauge - Unbounded Min/Max</title>
      <link>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836181#M1011311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution I ended up implementing was a lower bound of -1.1 and an upper bound of 10000000.&amp;nbsp; Since this is percentage of sales, the chance of that value falling out of those bounds is pretty nonexistent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 19:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Traffic-Light-Gauge-Unbounded-Min-Max/m-p/836181#M1011311</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2015-05-04T19:18:30Z</dc:date>
    </item>
  </channel>
</rss>

