<?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 Need help with Expression. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-Expression/m-p/1156588#M377223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is to fade the color of Bars in a Bar-Chart gradually. Each bar represent a represent revenue by country. We have only 10 bars (as we select only top 10 countries by revenue, so I used RANK).&lt;/P&gt;&lt;P&gt;I am using the expression in "Background-Color" of the chart as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;f(aggr(&lt;/SPAN&gt;rank&lt;SPAN style="font-size: 8pt;"&gt;(sum({&amp;lt;[Country Name]-={"Wor*","OECD*","South*","High*","*Sahara*","Low*","Latin*","Heavily*","Least*","Fragile*","European*","East *","Euro*","Arab*", "*iddle*","North A*"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;}&amp;gt;}Population)),[Country Name])&amp;lt;=1,RGB(33,52,73))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above expression we are excluding certain countries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write this expression again and again in "if-else" format means if Rank&amp;lt;2 then "Color Code-2"...if Rank &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; then "Color-Code-3",&lt;/P&gt;&lt;P&gt;So is there a way where I can use the entire RANK operation inside a variable and use that variable instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 09:51:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-01T09:51:03Z</dc:date>
    <item>
      <title>Need help with Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Expression/m-p/1156588#M377223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is to fade the color of Bars in a Bar-Chart gradually. Each bar represent a represent revenue by country. We have only 10 bars (as we select only top 10 countries by revenue, so I used RANK).&lt;/P&gt;&lt;P&gt;I am using the expression in "Background-Color" of the chart as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;f(aggr(&lt;/SPAN&gt;rank&lt;SPAN style="font-size: 8pt;"&gt;(sum({&amp;lt;[Country Name]-={"Wor*","OECD*","South*","High*","*Sahara*","Low*","Latin*","Heavily*","Least*","Fragile*","European*","East *","Euro*","Arab*", "*iddle*","North A*"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;}&amp;gt;}Population)),[Country Name])&amp;lt;=1,RGB(33,52,73))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above expression we are excluding certain countries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write this expression again and again in "if-else" format means if Rank&amp;lt;2 then "Color Code-2"...if Rank &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; then "Color-Code-3",&lt;/P&gt;&lt;P&gt;So is there a way where I can use the entire RANK operation inside a variable and use that variable instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 09:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Expression/m-p/1156588#M377223</guid>
      <dc:creator />
      <dc:date>2016-07-01T09:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Expression/m-p/1156589#M377224</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 with pick()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See in help menu for detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 09:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Expression/m-p/1156589#M377224</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-07-01T09:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Expression/m-p/1156590#M377225</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;like &lt;/P&gt;&lt;P&gt;Pick(YourExpression,RGB(assign_rgb_value_for_1_rank),RGB(&lt;SPAN style="font-size: 13.3333px;"&gt;assign_rgb_value_for_2_rank&lt;/SPAN&gt;),RGB(&lt;SPAN style="font-size: 13.3333px;"&gt;assign_rgb_value_for_3_rank&lt;/SPAN&gt;), and so on)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 09:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Expression/m-p/1156590#M377225</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-07-01T09:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Expression/m-p/1156591#M377226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked like a charm!!! Thank you so much! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 10:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Expression/m-p/1156591#M377226</guid>
      <dc:creator />
      <dc:date>2016-07-01T10:09:02Z</dc:date>
    </item>
  </channel>
</rss>

