<?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: Value dependent Expression font color formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Value-dependent-Expression-font-color-formula/m-p/81851#M785580</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 you'll have to attach some rows from your data. or at least create the same table structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2018 14:00:48 GMT</pubDate>
    <dc:creator>YoussefBelloum</dc:creator>
    <dc:date>2018-03-09T14:00:48Z</dc:date>
    <item>
      <title>Value dependent Expression font color formula</title>
      <link>https://community.qlik.com/t5/QlikView/Value-dependent-Expression-font-color-formula/m-p/81850#M785579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been struggling with this code for a long time now, so thought I should reach out to your guys out there. What I am trying to achieve is in a Pivot (cross) table there is district wise &amp;amp; day wise % Online Sales and the following color code is to be applied on the same -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If value in less than 25%, font color must be Red.&lt;/P&gt;&lt;P&gt;2. &lt;SPAN style="font-size: 13.3333px;"&gt;If value in more than 95%, font color must be Green.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;3. Anything in between the above 2 limits must be Red if lesser than the previous day or else Green if higher than the previous day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Code I could write is as follows, but it is throwing an error -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;IF((SUM(IF(Class2='WEB',Quantity))/SUM(Quantity))&amp;lt;25%,lightred(128),IF((SUM(IF(Class2='WEB',Quantity))/SUM(Quantity))&amp;gt;=before(SUM(IF(Class2='WEB',Quantity))/SUM(Quantity)),green(128),lightred(128)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also enclosed the result. Help is appreciated in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-dependent-Expression-font-color-formula/m-p/81850#M785579</guid>
      <dc:creator>sonu8072</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Value dependent Expression font color formula</title>
      <link>https://community.qlik.com/t5/QlikView/Value-dependent-Expression-font-color-formula/m-p/81851#M785580</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 you'll have to attach some rows from your data. or at least create the same table structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 14:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-dependent-Expression-font-color-formula/m-p/81851#M785580</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-03-09T14:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Value dependent Expression font color formula</title>
      <link>https://community.qlik.com/t5/QlikView/Value-dependent-Expression-font-color-formula/m-p/81852#M785581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Hi ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;After seen that image, i feel, the font size is same , but for the totals font size is BOLD. The color of font is based on condition wise.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;To get that you have to write a if condition in expression level ,after expanding the &lt;STRONG style="font-size: 14pt;"&gt;+ &lt;/STRONG&gt;sign.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Attached the image below for reference. In your case you have to write the IF condition in &lt;STRONG style="font-size: 18pt;"&gt;Text color&lt;/STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195880_Capture.PNG" style="height: 197px; width: 620px;" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 14:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-dependent-Expression-font-color-formula/m-p/81852#M785581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-09T14:22:03Z</dc:date>
    </item>
  </channel>
</rss>

