<?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: Background Color Expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87167#M5786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not clear your logic&lt;/P&gt;&lt;P&gt;kindly try this&lt;/P&gt;&lt;P&gt;if(Month=1,if(Period=1,if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TDC_Element &amp;gt; BudgetAmount&lt;/SPAN&gt; and&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TDC_Element&lt;/SPAN&gt;=Sales, RGB(0,255,0),RGB(255,0,0))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2018 09:27:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-03T09:27:41Z</dc:date>
    <item>
      <title>Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87166#M5785</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;I am trying to put background color expression as shown below,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;scenario is if Balance is greater than Budget then RED else Green and if TDC element is "Sales" and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Balance is &lt;/SPAN&gt;greater than Budget then Green else RED. (TDC Element, Balance, Budget are column names)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if((Month = '1' and Balance &amp;gt; BudgetAmount and Period = '1', rgb(255,0,0), &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;rgb(0,192,0))&lt;/SPAN&gt; OR&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Month = '1' and TDC_Element = 'Sales' and Balance &amp;gt; BudgetAmount and Period = '1',rgb(0,192,0), &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;rgb(255,0,0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Have tried to use the above expression but hard luck it does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;MAK.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87166#M5785</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2024-11-16T07:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87167#M5786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not clear your logic&lt;/P&gt;&lt;P&gt;kindly try this&lt;/P&gt;&lt;P&gt;if(Month=1,if(Period=1,if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TDC_Element &amp;gt; BudgetAmount&lt;/SPAN&gt; and&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TDC_Element&lt;/SPAN&gt;=Sales, RGB(0,255,0),RGB(255,0,0))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 09:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87167#M5786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-03T09:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87168#M5787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to compare TDC_Element (wich is a string value) with BudgetAmount (wich should be a numerical value)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TDC_Element = '&lt;STRONG&gt;Sales&lt;/STRONG&gt;' and TDC_Element &lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt; BudgetAmount"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not possible anyway. If I'm wrong please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 10:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87168#M5787</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2018-09-03T10:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87169#M5788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thiago,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes its a mistake...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;scenario is if Balance is greater than Budget then RED else Green and if TDC element is "Sales" and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Balance is &lt;/SPAN&gt;greater than Budget then Green else RED.(TDC Element, Balance, Budget are column names)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if((Month = '1' and Balance &amp;gt; BudgetAmount and Period = '1', rgb(255,0,0), &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;rgb(0,192,0))&lt;/SPAN&gt; OR&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Month = '1' and TDC_Element = 'Sales' and Balance &amp;gt; BudgetAmount and Period = '1',rgb(0,192,0), &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;rgb(255,0,0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Here you go, please see now, this is the correct one...i will correct the original discussion too..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;MAK.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 10:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87169#M5788</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2018-09-03T10:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87170#M5789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, now, we are on the line. Let's try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (Month='1' and Balance &amp;gt; BudgetAmount and Period='1' and &lt;STRONG&gt;Not&lt;/STRONG&gt; Match(TDC_Element,'Sales'),Red(),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Month='1' and Balance &amp;gt; BudgetAmount and Period='1' and Match(TDC_Element,'Sales'),Green(),Red())&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 11:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87170#M5789</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2018-09-03T11:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87171#M5790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thiago,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply, the expression you gave works for one condition only (it shows all red). I am trying 2 conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Balance &amp;gt; Budget then RED else Green&lt;/P&gt;&lt;P&gt;2. Balance &amp;gt; Budget and TDC Element is Sales then Green else RED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As there are more elements in dimension other than sales, so&lt;/P&gt;&lt;P&gt;If sales (balance) is greater than budget then Green (Why because its sales amount)&lt;/P&gt;&lt;P&gt;If Other elements (balance) is greater than budget then Red (because these are expenses)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is deep explanation to understand...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MAK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 12:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87171#M5790</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2018-09-03T12:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87172#M5791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If (Month='1' and Balance &amp;lt; BudgetAmount and Period='1' OR (Match(TDC_Element,'Sales') and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Month='1' and Balance &amp;gt; BudgetAmount and Period='1' )&lt;/SPAN&gt;,Green(), Red())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 12:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87172#M5791</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2018-09-03T12:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87173#M5792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Yogaraj,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks a lot for your reply, the expression you gave does not work, i have tried to work with your expression by adding some see below:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;if(Month='2',if(Period='2',if(Balance &amp;gt; BudgetAmount and&amp;nbsp; TDC_Element='Sales', RGB(0,192,0),RGB(255,0,0))))&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;if(Month='2',if(Period='2',if(Balance &amp;gt; BudgetAmount and&amp;nbsp; TDC_Element &amp;lt;&amp;gt; 'Sales', RGB(255,0,0),RGB(0,192,0))))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;---------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1. Balance &amp;gt; Budget then RED else Green&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2. Balance &amp;gt; Budget and TDC Element is Sales then Green else RED&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;As there are more elements in dimension other than sales, so&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If sales (balance) is greater than budget then Green (Why because its sales amount)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If Other elements (balance) is greater than budget then Red (because these are expenses)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Hope this is deep explanation to understand...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MAK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 13:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87173#M5792</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2018-09-03T13:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87174#M5793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thiago,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for spending your precious time on creating expressions, but hard luck it returns expression for one condition only and that is RED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried below expression by adding the same expression provided by you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (Month='1' and Balance &amp;gt; BudgetAmount and Period='1' AND (Match(TDC_Element,'Sales') ,Green(), Red()))&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;If (Month='1' and Balance &amp;gt; BudgetAmount and Period='1' AND (Not Match(TDC_Element,'Sales'),Green(), Red()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not work...I believe if you can just have a look at this expression, may be some minor correction is required which i cannot find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MAK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 13:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87174#M5793</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2018-09-03T13:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87175#M5794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thiago,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any L&lt;SPAN style="font-size: 10pt;"&gt;uck....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MAK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 06:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87175#M5794</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2018-09-04T06:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87176#M5795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please share a mock up? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 10:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87176#M5795</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2018-09-04T10:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87177#M5796</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;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;if(Month = '1' and TDC_Element = 'Sales' and Balance &amp;gt; BudgetAmount and Period = '1', rgb(0,255,0),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;if(Month = '1' and TDC_Element = 'Sales' and Balance &amp;lt;= BudgetAmount and Period = '1', rgb(0,192,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;if(Month = '1' and TDC_Element &amp;lt;&amp;gt; 'Sales' and Balance &amp;gt; BudgetAmount and Period = '1', rgb(192,0,0)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;if(Month = '1' and TDC_Element &amp;lt;&amp;gt; 'Sales' and Balance &amp;lt;= BudgetAmount and Period = '1', rgb(255,0,0)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(Month = '1' and TDC_Element = 'Sales' and Balance &amp;gt; BudgetAmount and Period = '1', rgb(0,255,0),&lt;/P&gt;&lt;P&gt;if(Month = '1' and TDC_Element = 'Sales' and Balance &amp;lt;= BudgetAmount and Period = '1', rgb(0,192,0),&lt;/P&gt;&lt;P&gt;if(Month = '1' and TDC_Element &amp;lt;&amp;gt; 'Sales' and Balance &amp;gt; BudgetAmount and Period = '1', rgb(10,192,0),&lt;/P&gt;&lt;P&gt;if(Month = '1' and TDC_Element &amp;lt;&amp;gt; 'Sales' and Balance &amp;lt;= BudgetAmount and Period = '1', rgb(255,0,0)))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 10:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87177#M5796</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-09-04T10:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87178#M5797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(Month = '1' and Period = '1', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(TDC_Element = 'Sales', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Balance &amp;gt; BudgetAmount, rgb(255,0,0), rgb(0,192,0))),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(TDC_Element &amp;lt;&amp;gt; 'Sales', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Balance &amp;gt; BudgetAmount, rgb(0,192,0), rgb(255,0,0)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 10:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87178#M5797</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-09-04T10:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87179#M5798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thiago,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find below table, Actuals are Balance column for each month same with Budget with each month:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 575px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="105"&gt;TDC_Element&lt;/TD&gt;&lt;TD class="xl67" width="83"&gt;&lt;SPAN style="color: #ff0000;"&gt;Budget&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" width="69"&gt;&lt;SPAN style="color: #00ccff;"&gt;Actual&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" width="83"&gt;&lt;SPAN style="color: #ff0000;"&gt;Budget&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" width="76"&gt;&lt;SPAN style="color: #00ccff;"&gt;Actual&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" width="83"&gt;&lt;SPAN style="color: #ff0000;"&gt;Budget&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" width="76"&gt;&lt;SPAN style="color: #00ccff;"&gt;Actual&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Sales&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;-109,147&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;-6,947&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;-110,893&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;-18,862&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;-112,507&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;-17,800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Materials Cost&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;32,090&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;5,361&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;32,165&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;11,631&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;31,310&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10,528&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Operating Expenses&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;9,369&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;12,426&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;9,560&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;8,185&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;9,751&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;15,260&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Utilities Expenses&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1,391&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;-2,895&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1,419&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;2,448&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1,447&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;3,788&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Outbound freight&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;4,653&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;9,695&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;4,748&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;4,444&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;4,843&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;6,040&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Other Expenses&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;2,152&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1,301&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;2,196&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1,096&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;2,240&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1,808&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MAK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 10:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87179#M5798</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2018-09-04T10:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87180#M5799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below expression provided by you, seems working but gives result for one condition only&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;if(Month = '1' and Period = '1',&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(TDC_Element = 'Sales',&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Balance &amp;gt; BudgetAmount, rgb(255,0,0), rgb(0,192,0))),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(TDC_Element &amp;lt;&amp;gt; 'Sales',&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Balance &amp;gt; BudgetAmount, rgb(0,192,0), rgb(255,0,0)))&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Thanks,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;MAK.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 11:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87180#M5799</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2018-09-04T11:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87181#M5800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below expression does not return any result...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Month = '1' and TDC_Element = 'Sales' and Balance &amp;gt; BudgetAmount and Period = '1', rgb(0,255,0),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Month = '1' and TDC_Element = 'Sales' and Balance &amp;lt;= BudgetAmount and Period = '1', rgb(0,192,0),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Month = '1' and TDC_Element &amp;lt;&amp;gt; 'Sales' and Balance &amp;gt; BudgetAmount and Period = '1', rgb(10,192,0),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Month = '1' and TDC_Element &amp;lt;&amp;gt; 'Sales' and Balance &amp;lt;= BudgetAmount and Period = '1', rgb(255,0,0)))))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MAK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 11:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87181#M5800</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2018-09-04T11:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87182#M5801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the snapshot below, Sales have not been applied any colour expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="tab.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212581_tab.JPG" style="height: 244px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MAK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 11:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87182#M5801</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2018-09-04T11:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87183#M5802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thiago / Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A mistake i was doing, i did not do the summing of the balance and budget, after applying the following expression including sum expression, i got &lt;STRONG style="text-decoration: underline;"&gt;'Sales' green&lt;/STRONG&gt; but the other element is not red&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(TDC_Element = 'Sales' and Sum({&amp;lt;Year = {'2018'}, Month = {'1'}&amp;gt;}Balance) &amp;gt; Sum({&amp;lt;Year = {'2018'}, Period = {'1'}&amp;gt;}BudgetAmount) , 'Green', &lt;/P&gt;&lt;P&gt;if(TDC_Element &amp;lt;&amp;gt; 'Sales' and Sum({&amp;lt;Year = {'2018'}, Month = {'1'}&amp;gt;}Balance) &amp;gt; Sum({&amp;lt;Year = {'2018'}, Period = {'1'}&amp;gt;}BudgetAmount) , 'Red'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i apply following expression if &lt;SPAN style="font-size: 13.3333px;"&gt;i got &lt;STRONG style="text-decoration: underline;"&gt;other elements green&lt;/STRONG&gt; but sales is not red&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;if(Year = '2018' and Month = '2' and Period = '2',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(TDC_Element = 'Sales',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Sum(Balance) &amp;gt; Sum(BudgetAmount), rgb(255,0,0), rgb(0,192,0))),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(TDC_Element &amp;lt;&amp;gt; 'Sales',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Sum(Balance) &amp;gt; Sum(BudgetAmount),&amp;nbsp; rgb(255,0,0), rgb(0,192,0)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just have a look on the above mentioned expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ashik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 14:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87183#M5802</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2018-09-04T14:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87184#M5803</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;Please see the below expression, this worked perfectly fine as needed...Thanks a lot...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(TDC_Element = 'Sales' and Sum({&amp;lt;Year = {'2018'}, Month = {'5'}&amp;gt;}Balance) &amp;gt; Sum({&amp;lt;Year = {'2018'}, &lt;/P&gt;&lt;P&gt;Period = {'5'}&amp;gt;}BudgetAmount) , 'Green', &lt;/P&gt;&lt;P&gt;if(TDC_Element = 'Sales' and Sum({&amp;lt;Year = {'2018'}, Month = {'5'}&amp;gt;}Balance) &amp;lt; Sum({&amp;lt;Year = {'2018'}, &lt;/P&gt;&lt;P&gt;Period = {'5'}&amp;gt;}BudgetAmount) , 'Red', &lt;/P&gt;&lt;P&gt;if(TDC_Element &amp;lt;&amp;gt; 'Sales' and Sum({&amp;lt;Year = {'2018'}, Month = {'5'}&amp;gt;}Balance) &amp;gt; Sum({&amp;lt;Year = {'2018'}, &lt;/P&gt;&lt;P&gt;Period = {'5'}&amp;gt;}BudgetAmount) , 'Red',&lt;/P&gt;&lt;P&gt;if(TDC_Element &amp;lt;&amp;gt; 'Sales' and Sum({&amp;lt;Year = {'2018'}, Month = {'5'}&amp;gt;}Balance) &amp;lt; Sum({&amp;lt;Year = {'2018'}, &lt;/P&gt;&lt;P&gt;Period = {'5'}&amp;gt;}BudgetAmount) , 'Green'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MAK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 04:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Background-Color-Expression/m-p/87184#M5803</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2018-09-05T04:55:55Z</dc:date>
    </item>
  </channel>
</rss>

