<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716898#M671075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Growth is dimension or Expression ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2014 21:19:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-13T21:19:43Z</dc:date>
    <item>
      <title>Background Color</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716893#M671070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am color-coding cells based on their value using Background Color, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([Growth] &amp;gt; '30' ,RGB(0,160,0),&lt;/P&gt;&lt;P&gt;IF([Growth] &amp;gt; '20' ,RGB(0,225,0),&lt;/P&gt;&lt;P&gt;IF([Growth] &amp;gt; '5' ,RGB(150,255,150),&lt;/P&gt;&lt;P&gt;IF ([Growth] &amp;gt;'0' ,RGB(255,255,235),&lt;/P&gt;&lt;P&gt;IF([Growth] &amp;gt; '-10' ,RGB(255,175,175),&lt;/P&gt;&lt;P&gt;IF([Growth] &amp;gt; '-20' ,RGB(255,140,140),&lt;/P&gt;&lt;P&gt;IF([Growth] &amp;lt; '-20', RGB(255,80,80))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Growth.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68817_Growth.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Works nicely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the ranges change massively based on filters.&amp;nbsp; These are local results, and the numbers are never more than 30, or less than -20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i remove filters and pull in the national data, the top number is more than 5000, and the bottom can be less than -2500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea how to replace the '30' '20' '5' '0' '-10' '-20' with a variable that will calculate the background colors based on the full range of values in the Growth dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your thoughts.&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 17:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716893#M671070</guid>
      <dc:creator />
      <dc:date>2014-10-13T17:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716894#M671071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing it will be something like&lt;/P&gt;&lt;P&gt;IF([Growth]/sum(TOTAL Growth) &amp;gt; 0.8 ,RGB(0,160,0),..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 17:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716894#M671071</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2014-10-13T17:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716895#M671072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JV, I got 2 ideas on your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method 1: Complex IF cond depends on the Length of Growth value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF( Len([Growth]) = 4, Write the BG cond with 5000 to -2500 range , Write the BG cond with 30 to -25 range )&lt;/P&gt;&lt;P&gt;This Method should work but it kills the calculation depends on the size of your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method 2 : Hide/Show logic with your selections&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create the 2 charts. One chart with low range values and other chart high range values. Enable the Hide/Show logic depends on the user selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 17:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716895#M671072</guid>
      <dc:creator />
      <dc:date>2014-10-13T17:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716896#M671073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martyn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice idea, but I think I need to calculate range or something instead of sum.&amp;nbsp; Or have the sum do an absolute on the negative numbers.&amp;nbsp; Have you ever tried this?&lt;/P&gt;&lt;P&gt;Thanks, JV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 20:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716896#M671073</guid>
      <dc:creator />
      <dc:date>2014-10-13T20:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716897#M671074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dathu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just showed two filter examples.&amp;nbsp; In reality, there could be hundreds of filter variations, so I was hoping for a dynamic calculation that gave me the full range of values from the Growth dimension column and put the specific Growth dimension value in the correct bucket (top 20%, next 20%, third 20% fourth 20% and bottom 20%).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another problem is that the Growth dimension is actually a number returned from an expression, not a hard dimension, so QV has trouble seeing it. (error:&amp;nbsp; Bad field name(s): Growth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other thoughts would be appreciated.&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 20:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716897#M671074</guid>
      <dc:creator />
      <dc:date>2014-10-13T20:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716898#M671075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Growth is dimension or Expression ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 21:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716898#M671075</guid>
      <dc:creator />
      <dc:date>2014-10-13T21:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716899#M671076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post some sample qvw and the expression depends on the ur data model as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 21:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716899#M671076</guid>
      <dc:creator />
      <dc:date>2014-10-13T21:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716900#M671077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Growth is an integer that is created from this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[4_WEEK_ROLLING_RETAIL]={"P4WTY"}&amp;gt;} TRX_QTY_NORM))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Growth Expression.JPG.jpg" class="jive-image" src="/legacyfs/online/68818_Growth Expression.JPG.jpg" style="width: 620px; height: 204px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 22:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716900#M671077</guid>
      <dc:creator />
      <dc:date>2014-10-13T22:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716901#M671078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I tried this, replacing the second Growth with the actual expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ([Growth]/sum(TOTAL Sum({&amp;lt;[4_WEEK_ROLLING_RETAIL]={"P4WTY"}&amp;gt;} TRX_QTY_NORM)) &amp;gt; 0.8 ,RGB(0,160,0),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([Growth]/sum(TOTAL Sum({&amp;lt;[4_WEEK_ROLLING_RETAIL]={"P4WTY"}&amp;gt;} TRX_QTY_NORM))) &amp;gt; 0.6 ,RGB(0,225,0),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([Growth]/sum(TOTAL Sum({&amp;lt;[4_WEEK_ROLLING_RETAIL]={"P4WTY"}&amp;gt;} TRX_QTY_NORM))) &amp;gt; 0.4 ,RGB(150,255,150),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ([Growth]/sum(TOTAL Sum({&amp;lt;[4_WEEK_ROLLING_RETAIL]={"P4WTY"}&amp;gt;} TRX_QTY_NORM))) &amp;gt; 0.2 ,RGB(255,255,235),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([Growth]/sum(TOTAL Sum({&amp;lt;[4_WEEK_ROLLING_RETAIL]={"P4WTY"}&amp;gt;} TRX_QTY_NORM))) &amp;gt; -0.1 ,RGB(255,175,175),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([Growth]/sum(TOTAL Sum({&amp;lt;[4_WEEK_ROLLING_RETAIL]={"P4WTY"}&amp;gt;} TRX_QTY_NORM))) &amp;gt; -0.3 ,RGB(255,140,140),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([Growth]/sum(TOTAL Sum({&amp;lt;[4_WEEK_ROLLING_RETAIL]={"P4WTY"}&amp;gt;} TRX_QTY_NORM))) &amp;gt; -0.5, RGB(255,80,80))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now there is an error in expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 22:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color/m-p/716901#M671078</guid>
      <dc:creator />
      <dc:date>2014-10-13T22:08:13Z</dc:date>
    </item>
  </channel>
</rss>

