<?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 write a script for conditional color in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034650#M944686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried but still unsuccessful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2016 01:21:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-08T01:21:48Z</dc:date>
    <item>
      <title>How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034637#M944673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone could teach me how to write a script to have a conditional color (e.g. +ve figure shows red color; -ve figure shows black color).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110735_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 10:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034637#M944673</guid>
      <dc:creator />
      <dc:date>2016-01-06T10:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034638#M944674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(YourExpression &amp;gt; 0, LightRed(), Black())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it needs to go here:&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/110751_Capture.PNG" style="height: 477px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you won't be able to include Target Variance (days) and 48 with different formatting in one text box objects. You can use two different text box objects and use the above for the object with the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 12:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034638#M944674</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-06T12:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034639#M944675</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;May be like this,&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14520841925339694" jivemacro_uid="_14520841925339694"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Score&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 48&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, -49&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 50&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, -89&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 98&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="110739" alt="color text.PNG" class="jive-image image-1" src="/legacyfs/online/110739_color text.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In Expression Back Ground Color: &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1452084247549571 jive_text_macro" jivemacro_uid="_1452084247549571"&gt;
&lt;P&gt;&lt;STRONG&gt;=if(Score&amp;gt;=0,Black(),LightRed())&lt;/STRONG&gt;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There in place of '0'&amp;nbsp; you Can use your cut off value&amp;nbsp; -&amp;gt;&amp;nbsp; 48.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 12:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034639#M944675</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-01-06T12:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034640#M944676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried Sunny T's method (it is easier for me). Unfortunately, still unsuccessful.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110839_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/110840_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/110841_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 02:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034640#M944676</guid>
      <dc:creator />
      <dc:date>2016-01-07T02:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034641#M944677</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;Change your expression like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14521556323109634" jivemacro_uid="_14521556323109634"&gt;
&lt;P&gt;=IF(Num($(Close Debtor Provision Current)/1000,'#,##0')&amp;gt;=0,Black(),LightBlue())&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else Check&amp;nbsp; your variable once.It is giving your desired number or not .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 08:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034641#M944677</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-01-07T08:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034642#M944678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Hirish V,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still unsuccesesful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110878_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/110879_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 09:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034642#M944678</guid>
      <dc:creator />
      <dc:date>2016-01-07T09:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034643#M944679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Or even this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; background-color: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;SPAN style="background-color: inherit;"&gt;&lt;STRONG&gt;=If($(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="keyword" style="background-color: inherit;"&gt;Close&lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt; Debtor Provision &lt;/SPAN&gt;&lt;SPAN class="keyword" style="background-color: inherit;"&gt;Current&lt;/SPAN&gt;&lt;SPAN style="background-color: inherit;"&gt;) &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt; background-color: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;&amp;gt;= 0, Black(), Blue())&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM style=": ; color: black; font-size: 9pt !important; background-color: inherit; font-weight: inherit;"&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt; &lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 09:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034643#M944679</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-07T09:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034644#M944680</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;Can your be able to share your app!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 09:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034644#M944680</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-01-07T09:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034645#M944681</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;Did gone through your variable output . Check it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 10:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034645#M944681</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-01-07T10:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034646#M944682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;same result, can't display the figure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 10:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034646#M944682</guid>
      <dc:creator />
      <dc:date>2016-01-07T10:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034647#M944683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF($(Close Debtor Provision Current)/1000&amp;gt;=0,color(201),color(102))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 11:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034647#M944683</guid>
      <dc:creator>prabir_c</dc:creator>
      <dc:date>2016-01-07T11:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034648#M944684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share your application or a sample where it isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034648#M944684</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-07T12:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034649#M944685</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;You go your expression tab pick any expression and expand that one you will get background color ,text color, and more double click on this and write the expression like below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( sum(sales) &amp;gt; 0 , Green() ,&lt;/P&gt;&lt;P&gt; if (sum(sales)&amp;lt; 0 , red()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034649#M944685</guid>
      <dc:creator>rajeshforqlikvi</dc:creator>
      <dc:date>2016-01-07T12:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034650#M944686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried but still unsuccessful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 01:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034650#M944686</guid>
      <dc:creator />
      <dc:date>2016-01-08T01:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for conditional color</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034651#M944687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your method is OK, but is limited to make the whole text box become conditional color. My intention is to make the figure or wordings to become conditional color in a statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 01:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-script-for-conditional-color/m-p/1034651#M944687</guid>
      <dc:creator />
      <dc:date>2016-01-08T01:28:52Z</dc:date>
    </item>
  </channel>
</rss>

