<?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: Change expression font color based on targets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378411#M572467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unforunately, I am running a personal edition, so couldn't open your QVW file but based on what I understood from your description I think that you are looking for a conditional color formatting of the text which in your case is the "target".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that you are displaying the sales target in a table, you can set different conditional colors by going to the Expressions tab in the table properties. Simply expand the expression and you will see the option "Text Color". Click "Text Color" and enter the conditional expression in the "Definition" area. The expression should be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(sum(SalesTarget) &amp;lt; 1000000, Red(),&lt;/P&gt;&lt;P&gt;If(sum(SalesTarget) &amp;gt; 1000000, If(sum(SalesTarget) &amp;gt; 5000000, Green(),&lt;/P&gt;&lt;P&gt; Blue())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above expression, I am setting the SalesTarget to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Red - if it is less than 1 million&lt;/LI&gt;&lt;LI&gt;Blue - if it is between 1 and 5 million and&lt;/LI&gt;&lt;LI&gt;Green - if it is anything above 5 million&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2012 15:28:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-16T15:28:36Z</dc:date>
    <item>
      <title>Change expression font color based on targets</title>
      <link>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378408#M572464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to implement a functionality where I have to change the font color based on targets specified in excel sheet. For each product there are different targets and operators for which different font colors have been specified.&lt;/P&gt;&lt;P&gt;I needs to show different font color of sales according to provided excel sheet. I have attached the qvw file and configurable excel sheet.&lt;/P&gt;&lt;P&gt;Please check the text color of Sales expression. It is not working. After some investigation I found that the Operator1, Color1 etc are coming as a text from excel sheet that's why it is not working. Is there any other way to achieve this functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide your expert comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Anosh Nathaniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 08:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378408#M572464</guid>
      <dc:creator />
      <dc:date>2012-08-16T08:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change expression font color based on targets</title>
      <link>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378409#M572465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a simalar question to you some time ago. Try looking at this thred &lt;A _jive_internal="true" href="https://community.qlik.com/message/175527#175527"&gt;http://community.qlik.com/message/175527#175527&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 09:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378409#M572465</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2012-08-16T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change expression font color based on targets</title>
      <link>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378410#M572466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone through your post but this is not the similar question which I am asking. It is different problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anosh Nathaniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 13:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378410#M572466</guid>
      <dc:creator />
      <dc:date>2012-08-16T13:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change expression font color based on targets</title>
      <link>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378411#M572467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unforunately, I am running a personal edition, so couldn't open your QVW file but based on what I understood from your description I think that you are looking for a conditional color formatting of the text which in your case is the "target".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that you are displaying the sales target in a table, you can set different conditional colors by going to the Expressions tab in the table properties. Simply expand the expression and you will see the option "Text Color". Click "Text Color" and enter the conditional expression in the "Definition" area. The expression should be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(sum(SalesTarget) &amp;lt; 1000000, Red(),&lt;/P&gt;&lt;P&gt;If(sum(SalesTarget) &amp;gt; 1000000, If(sum(SalesTarget) &amp;gt; 5000000, Green(),&lt;/P&gt;&lt;P&gt; Blue())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above expression, I am setting the SalesTarget to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Red - if it is less than 1 million&lt;/LI&gt;&lt;LI&gt;Blue - if it is between 1 and 5 million and&lt;/LI&gt;&lt;LI&gt;Green - if it is anything above 5 million&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 15:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378411#M572467</guid>
      <dc:creator />
      <dc:date>2012-08-16T15:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change expression font color based on targets</title>
      <link>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378412#M572468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your reply but this is not what I am looking for. I want to take the operator ('&amp;lt;' or '&amp;gt;' or '&amp;gt;=' or '&amp;lt;=') directly from excel sheet and create the if clause in expression similar as you have created. This can be achieved using variables, but I can't create variables for each product as product may be 100 or 200 and user can specify different operator for each product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am able to explain my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anosh Nathaniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 18:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378412#M572468</guid>
      <dc:creator />
      <dc:date>2012-08-20T18:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change expression font color based on targets</title>
      <link>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378413#M572469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest any solution for my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anosh Nathaniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 07:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378413#M572469</guid>
      <dc:creator />
      <dc:date>2012-08-23T07:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change expression font color based on targets</title>
      <link>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378414#M572470</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;I think I understand what you are trying to do, but the Excel file is difficult to interpret into a dynamic Qlikview expression (for example, no between operator). It looks like you are trying to colour products according to low/medium/high bands with different limits for each product. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I handle something like this is to use Class or Interval match to 'band' the values, and then colour the results based on the class or interval band. You could use the extended interval match syntax to get product specific banding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The spreadsheet would contain the fields: Product, Low, High&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could load this into like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13457147057445758" jivemacro_uid="_13457147057445758"&gt;&lt;P&gt;Intervals:&lt;/P&gt;&lt;P&gt;LOAD Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Low' As Band,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 As [From],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Low As [To]&lt;/P&gt;&lt;P&gt;From ProductBands.xlsx&lt;/P&gt;&lt;P&gt;(.....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Medium' As Band,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Low+1 As [From],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; High-1 As [To]&lt;/P&gt;&lt;P&gt;From ProductBands.xlsx&lt;/P&gt;&lt;P&gt;(.....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;Concatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD Product&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'High' As Band&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; High As [From],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Null() As [To]&lt;/P&gt;&lt;P&gt;From ProductBands.xlsx&lt;/P&gt;&lt;P&gt;(.....)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use intervals something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13457147057432046" jivemacro_uid="_13457147057432046"&gt;&lt;P&gt;Left Join (Sales)&lt;/P&gt;&lt;P&gt;IntervalMatch(Sales, Product)&lt;/P&gt;&lt;P&gt;LOAD [From], [To] Resident Intervals;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Sales)&lt;/P&gt;&lt;P&gt;LOAD * Resident Intervals;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Intervals;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart, use the colour expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Pick(Match(Band, 'Low', 'Medium', 'High'), RGB(225,0,0), RGB(0,0,225), RGB(0,127,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps to get you started&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changed to Concatenate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 09:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378414#M572470</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-08-23T09:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change expression font color based on targets</title>
      <link>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378415#M572471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anosh, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RE. No.4 reply, you say that this can be done using variables. Could you let me know how you do this. &lt;/P&gt;&lt;P&gt;I am having a similar issue, but as my dataset is smaller I might be able to use variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 13:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378415#M572471</guid>
      <dc:creator />
      <dc:date>2013-07-19T13:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change expression font color based on targets</title>
      <link>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378416#M572472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you got the answer for the issue...???????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 13:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-expression-font-color-based-on-targets/m-p/378416#M572472</guid>
      <dc:creator />
      <dc:date>2013-10-16T13:12:39Z</dc:date>
    </item>
  </channel>
</rss>

