<?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: Expression Attribute Background Color problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589415#M545317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your selection might be affecting the Background color expression. Its excluded in the actual expression but not in the Background expression. Please check and make sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 18:51:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-06T18:51:09Z</dc:date>
    <item>
      <title>Expression Attribute Background Color problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589413#M545315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a stacked bar chart that represents an Opportunity Pipeline. The sections of the bars are sales stages for the opportunities and the dimension is year-quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="4-1-2014 3-54-01 PM.jpg" class="jive-image" src="/legacyfs/online/56368_4-1-2014 3-54-01 PM.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is fairly simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Opportunities.StageGroup = {'Pending','Committed'}&lt;/P&gt;&lt;P&gt; ,FiscalYearName = &lt;/P&gt;&lt;P&gt; ,Calendar.RelativeFiscalQuarter = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Current Quarter', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Current Quarter + 1',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Current Quarter + 2',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Current Quarter + 3',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Current Quarter + 4'} &lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt;} Opportunities.Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Expression Attribute Background Color, I have the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Opportunities.StageNumber = '5', $(vStg5Color),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Opportunities.StageNumber = '4B', $(vStg4BColor),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Opportunities.StageNumber = '4A', $(vStg4AColor),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Opportunities.StageNumber = '3', $(vStg3Color),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Opportunities.StageNumber = '2', $(vStg2Color),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Opportunities.StageNumber = '1', $(vStg1Color)))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables are in the form of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=rgb(176,202,142)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, if I filter on a year (FiscalYearName) outside of the set analysis, it wrecks the colors (this has FY13 selected):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="4-1-2014 3-58-09 PM.jpg" class="jive-image" src="/legacyfs/online/56372_4-1-2014 3-58-09 PM.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried with and without the '=' in the variables and also by using the RGB directly in the If statement in the background color. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on how I can fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;www.fortunecookiebi.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 22:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589413#M545315</guid>
      <dc:creator>mikecrengland</dc:creator>
      <dc:date>2014-04-01T22:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Attribute Background Color problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589414#M545316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't have any takers on this last month... Anybody have thoughts on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 18:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589414#M545316</guid>
      <dc:creator>mikecrengland</dc:creator>
      <dc:date>2014-05-06T18:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Attribute Background Color problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589415#M545317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your selection might be affecting the Background color expression. Its excluded in the actual expression but not in the Background expression. Please check and make sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 18:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589415#M545317</guid>
      <dc:creator />
      <dc:date>2014-05-06T18:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Attribute Background Color problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589416#M545318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I ignore that selection in the 'IF' statement for the background color... Or is there a better way to do the background color?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 18:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589416#M545318</guid>
      <dc:creator>mikecrengland</dc:creator>
      <dc:date>2014-05-06T18:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Expression Attribute Background Color problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589417#M545319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Opportunities.StageNumber = '5',Only({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FiscalYearName =&lt;/SPAN&gt;&amp;gt;} $(vStg5Color)),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; If(Opportunities.StageNumber = '4B', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Only({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FiscalYearName =&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;gt;}&lt;/SPAN&gt;$(vStg4BColor)),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; If(Opportunities.StageNumber = '4A', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Only({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FiscalYearName =&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;gt;}&lt;/SPAN&gt;$(vStg4AColor)),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; If(Opportunities.StageNumber = '3',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Only({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FiscalYearName =&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;gt;}&lt;/SPAN&gt; $(vStg3Color)),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; If(Opportunities.StageNumber = '2', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Only({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FiscalYearName =&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;gt;}&lt;/SPAN&gt;$(vStg2Color)),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; If(Opportunities.StageNumber = '1', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Only({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FiscalYearName =&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;gt;}&lt;/SPAN&gt;$(vStg1Color))))))))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Attached is a simple example which uses the same concept.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 22:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589417#M545319</guid>
      <dc:creator />
      <dc:date>2014-05-06T22:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Attribute Background Color problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589418#M545320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would rather use the only() function with the set expression around the field than the constant number:&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;"&gt;= If( &lt;STRONG&gt;only( {1} Opportunities.StageNumber)&lt;/STRONG&gt; = '5', &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vStg5Color),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;...)&lt;BR /&gt;&lt;/SPAN&gt;&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;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 22:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589418#M545320</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-06T22:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Attribute Background Color problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589419#M545321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You guys are genius! Everytime I think I know what I'm doing, ya'll come up with something that had never crossed my mind!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK YOU!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 15:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/589419#M545321</guid>
      <dc:creator>mikecrengland</dc:creator>
      <dc:date>2014-05-07T15:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Attribute Background Color problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/2524305#M1226598</link>
      <description>&lt;P&gt;I have a followup questio&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;i am going through a similar problem, and when i am doing selection my background colour is changing,&lt;/P&gt;&lt;P&gt;below is my expression can you suggest for this please:&lt;/P&gt;&lt;P&gt;=If(&lt;BR /&gt;(&lt;BR /&gt;(Sum({&amp;lt;GITDATE = {'$(=date(max(GITDATE)))'},Table_Flag = {'TBA'},Measure&amp;gt;}PRMCNT) ) &amp;lt;= sum({&amp;lt;GITDATE,Measure&amp;gt;}Threshold_Green))&lt;BR /&gt;and (WildMatch(Measure,'GRM','BCL',MNB')), LightGreen()&lt;BR /&gt;,'#ffbf00'&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 15:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Attribute-Background-Color-problem/m-p/2524305#M1226598</guid>
      <dc:creator>zyn</dc:creator>
      <dc:date>2025-07-15T15:46:39Z</dc:date>
    </item>
  </channel>
</rss>

