<?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: Conditional based display of Traffic Lights in data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116290#M636692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125254_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 May 2016 19:20:07 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-20T19:20:07Z</dc:date>
    <item>
      <title>Conditional based display of Traffic Lights in data</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116289#M636691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this task in hand since quite sometime now and it still remains only half solved. Coordinated with some experienced Qlikview developers in my team as well but they haven't been able to crack this completely either over the last 2 days. I had posted this issue earlier over here as well but it remained unresolved as i didn't attach the Table files or qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching the Table File that goes in QV &amp;amp; the qvw as well with the full explanation of the issue in hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is as follows,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/125257_Capture.PNG" style="height: 130px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above chart every Market has a calculated field for 6 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Taking Belgium Market as an example&lt;/STRONG&gt;(It needs to be done similarly for all Markets)&lt;/P&gt;&lt;P&gt;What needs to be done is mentioned below step by step taking Belgium Market as an example:&lt;/P&gt;&lt;P&gt;1)Find the Average(Maximum 3 Nos) &amp;amp; Average of (Minimum 2 nos.) at individual Market level and use these as a Benchmark&lt;/P&gt;&lt;P&gt;2)In case of Belgium it will be Average of (2.8%,0.8%,0.6%) = 1.53% as these are the maximum 3 nos. in Belgium &amp;amp; Average of (0.5%,0.5%) = 0.5% as these are the minimum 2 nos. here. &lt;/P&gt;&lt;P&gt;3)Any of the nos. &amp;gt;=1.53% should be shown in green , Any nos. &amp;lt;=0.5% shown be shown in red , Any nos. between 1.53% &amp;amp; 0.5% should be shown in yellow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result should look like this for Belgium for instance:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/125256_Untitled.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is half the solution i have in hand.It is not exactly a complete solution as explained further : &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Average of Minimum 2 Nos. for Belgium:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Market={'Belgium'}&amp;gt;}if(aggr(rank(-Numbers),Market,Month)&amp;lt;=2,Numbers))/2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Average of Maximum 3 Nos. for Belgium:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Market={'Belgium'}&amp;gt;}if(aggr(rank(Numbers),Market,Month)&amp;lt;=3,Numbers))/3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the above solution works perfectly BUT ONLY IF&amp;nbsp; "Numbers" is a simple numeric column in the data. In my case however all 6 values for every Market are calculated and not straight forward numbers !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 18:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116289#M636691</guid>
      <dc:creator />
      <dc:date>2016-05-20T18:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional based display of Traffic Lights in data</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116290#M636692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125254_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 19:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116290#M636692</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-20T19:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional based display of Traffic Lights in data</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116291#M636693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this in the pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;SPAN style="color: #99cc00;"&gt;If(Sum([Unique Leads 1 Month])/Sum([Active Contacts]) &amp;gt;= &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;Avg(TOTAL &amp;lt;Market&amp;gt; Aggr(If(Rank(Sum([Unique Leads 1 Month])/Sum([Active Contacts])) &amp;lt;= 3,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #99cc00;"&gt;Sum([Unique Leads 1 Month])/Sum([Active Contacts])), Market, Month)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff9900;"&gt;'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #99cc00;"&gt;If(Sum([Unique Leads 1 Month])/Sum([Active Contacts]) &amp;lt;= &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;Avg(TOTAL &amp;lt;Market&amp;gt; Aggr(If(Rank(-Sum([Unique Leads 1 Month])/Sum([Active Contacts])) &amp;lt;= 2,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #99cc00;"&gt;Sum([Unique Leads 1 Month])/Sum([Active Contacts])), Market, Month)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff9900;"&gt;'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_r.png',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff9900;"&gt;'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_y.png'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="125264" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125264_Capture.PNG" style="height: 167px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 19:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116291#M636693</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-20T19:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional based display of Traffic Lights in data</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116292#M636694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remarkable ! Thanks a ton!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 19:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116292#M636694</guid>
      <dc:creator />
      <dc:date>2016-05-20T19:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional based display of Traffic Lights in data</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116293#M636695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem at all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pivot table option is not better, instead of repeating your expression for each market?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 20:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116293#M636695</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-20T20:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional based display of Traffic Lights in data</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116294#M636696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes indeed! i used the pivot table option method to display the indicators ! Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 09:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116294#M636696</guid>
      <dc:creator />
      <dc:date>2016-05-21T09:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional based display of Traffic Lights in data</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116295#M636697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh okay, you marked the other one as the correct, so I wondered if that was the option you went ahead with.&lt;/P&gt;&lt;P&gt;Its good to know the pivot table option is what you ended up using &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 10:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-based-display-of-Traffic-Lights-in-data/m-p/1116295#M636697</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-21T10:34:00Z</dc:date>
    </item>
  </channel>
</rss>

