<?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: How to highlight background using Rank in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543646#M203141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understood wrongly, Please check the solution below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;CITY, PRODUCT_SEGMENT, AMOUNT&lt;/P&gt;&lt;P&gt;city1,prod1,100&lt;/P&gt;&lt;P&gt;city1,prod2,200&lt;/P&gt;&lt;P&gt;city1,prod3,150&lt;/P&gt;&lt;P&gt;city2,prod1,250&lt;/P&gt;&lt;P&gt;city2,prod2,200&lt;/P&gt;&lt;P&gt;city2,prod3,210&lt;/P&gt;&lt;P&gt;city3,prod1,100&lt;/P&gt;&lt;P&gt;city3,prod2,50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;PRODUCT_SEGMENT, R, G, B&lt;/P&gt;&lt;P&gt;prod1, 27, 169, 5&lt;/P&gt;&lt;P&gt;prod2, 245, 241, 0&lt;/P&gt;&lt;P&gt;prod3, 245, 50, 10];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use inline loads as above and backgroun color expression&lt;/P&gt;&lt;P&gt;=RGB(FirstSortedValue(R, -Aggr(Sum(AMOUNT), CITY, PRODUCT_SEGMENT)), FirstSortedValue(G, -Aggr(Sum(AMOUNT), CITY, PRODUCT_SEGMENT)),&lt;/P&gt;&lt;P&gt;FirstSortedValue(B, -Aggr(Sum(AMOUNT), CITY, PRODUCT_SEGMENT)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2014 11:53:31 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2014-01-28T11:53:31Z</dc:date>
    <item>
      <title>How to highlight background using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543641#M203136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table with City Product Segment and Amount. Each product segment has a color coding. I want to change background color for each of the city based on max. business done per city&amp;nbsp; within the product segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the sample qvw. The sample shows chart 1 with City and Amount. Chart 2 shows City, Product segment,amount and rank.&lt;/P&gt;&lt;P&gt;As per the sample data City 1 cell color in chart 1 should have yellow color as Prod 2 is ranked 1. Similarly City 2 should have green color as Prod 1 is ranked 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried a couple of options using rank not able to get it though. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 11:53:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543641#M203136</guid>
      <dc:creator />
      <dc:date>2014-01-21T11:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight background using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543642#M203137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see if attached is what you are looking for. Ended up using the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(firstsortedvalue(PRODUCT_SEGMENT, aggr(rank(sum(AMOUNT)), CITY, PRODUCT_SEGMENT)), 'prod1', 'prod2', 'prod3'), Green(), Yellow(), Red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 12:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543642#M203137</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-01-21T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight background using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543643#M203138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;=Pick(Rank(sum(AMOUNT)), Green(), Yellow(), Red())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 13:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543643#M203138</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-01-21T13:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight background using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543644#M203139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jerem,&amp;nbsp; The solution is alright if I have limited product, how do I manage if I have more than 20 products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 09:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543644#M203139</guid>
      <dc:creator />
      <dc:date>2014-01-28T09:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight background using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543645#M203140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Rank(sum(AMOUNT)), Green(), Yellow(), Red()) does not work If you have same product ranking 1 in 2 cities. In one city it makes green and in another city for the same product it makes red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Lax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 10:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543645#M203140</guid>
      <dc:creator />
      <dc:date>2014-01-28T10:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight background using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543646#M203141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understood wrongly, Please check the solution below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;CITY, PRODUCT_SEGMENT, AMOUNT&lt;/P&gt;&lt;P&gt;city1,prod1,100&lt;/P&gt;&lt;P&gt;city1,prod2,200&lt;/P&gt;&lt;P&gt;city1,prod3,150&lt;/P&gt;&lt;P&gt;city2,prod1,250&lt;/P&gt;&lt;P&gt;city2,prod2,200&lt;/P&gt;&lt;P&gt;city2,prod3,210&lt;/P&gt;&lt;P&gt;city3,prod1,100&lt;/P&gt;&lt;P&gt;city3,prod2,50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;PRODUCT_SEGMENT, R, G, B&lt;/P&gt;&lt;P&gt;prod1, 27, 169, 5&lt;/P&gt;&lt;P&gt;prod2, 245, 241, 0&lt;/P&gt;&lt;P&gt;prod3, 245, 50, 10];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use inline loads as above and backgroun color expression&lt;/P&gt;&lt;P&gt;=RGB(FirstSortedValue(R, -Aggr(Sum(AMOUNT), CITY, PRODUCT_SEGMENT)), FirstSortedValue(G, -Aggr(Sum(AMOUNT), CITY, PRODUCT_SEGMENT)),&lt;/P&gt;&lt;P&gt;FirstSortedValue(B, -Aggr(Sum(AMOUNT), CITY, PRODUCT_SEGMENT)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 11:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-highlight-background-using-Rank/m-p/543646#M203141</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-01-28T11:53:31Z</dc:date>
    </item>
  </channel>
</rss>

