<?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: Calculated Colours in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652057#M238391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I would also use an RGB expression instead, and assure the (Score x 255) returns values between 1 and 255.&lt;/P&gt;&lt;P&gt;The red(x) does not actually give shades of red, but red with different alpha values/different oppacities which might give a slightly different result.&lt;/P&gt;&lt;P&gt;If Score has more than one value per line/bar etc., you will probably end up with black lines/bars, if you don't take care of this in the calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 14:19:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-10T14:19:06Z</dc:date>
    <item>
      <title>Calculated Colours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652049#M238383</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'm trying to assign dynamic background colours, but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Red(Score*255)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;won't work. I tried &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Score&amp;gt;0.5,Red(255),Red(50))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and that's fine, but surely I don't need to have 50 if statements to get more shades of Red?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Oli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 13:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652049#M238383</guid>
      <dc:creator />
      <dc:date>2014-06-10T13:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Colours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652050#M238384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to dynamically change the colors in a table based on the cell value vs a standard?&amp;nbsp; If so,&amp;nbsp; click the "+" next to your expression and select background color, then enter your expression to define the behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you'd have one if statement for your whole table &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 13:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652050#M238384</guid>
      <dc:creator />
      <dc:date>2014-06-10T13:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Colours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652051#M238385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm doing exactly that. That's not the problem though - the problem is that =Red(Score*255) doesn't work and I don't want to give 255 if statements for every shade of red. Score=1 should be Red(255), Score=0 should be Red(0), but QlikView can't cope with calculations in Red() apparently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 13:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652051#M238385</guid>
      <dc:creator />
      <dc:date>2014-06-10T13:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Colours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652052#M238386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this post &lt;A class="unlinked" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/12/04/colors-in-charts"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/12/04/colors-in-charts &lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;You'll want to basically make a color definition table based on the score.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 13:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652052#M238386</guid>
      <dc:creator />
      <dc:date>2014-06-10T13:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Colours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652053#M238387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the colormix wizard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 14:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652053#M238387</guid>
      <dc:creator />
      <dc:date>2014-06-10T14:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Colours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652054#M238388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use instead&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =RGB(Score*255,0,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 14:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652054#M238388</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-06-10T14:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Colours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652055#M238389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A href="https://community.qlik.com/qlik-users/153817"&gt;Jacob Kean&lt;/A&gt; says, Use colormix wizard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the background color of your expression, then go to &lt;STRONG&gt;File&lt;/STRONG&gt; in the upper left hand corner and choose &lt;STRONG&gt;Colormix Wizard..., &lt;/STRONG&gt;then put the expression in (such as Score) then choose the upper and lower limit color. Finish the wizard and it will spit out a formula that should shade your backgrounds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="60377" alt="Expression.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60377_Expression.PNG.png" style="width: 620px; height: 426px;" /&gt;&lt;IMG __jive_id="60378" alt="Color.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60378_Color.PNG.png" style="width: 620px; height: 418px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Attached is an example using Colormix wizard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 14:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652055#M238389</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-06-10T14:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Colours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652056#M238390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! Surely that's a bug that needs fixing...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 14:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652056#M238390</guid>
      <dc:creator />
      <dc:date>2014-06-10T14:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Colours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652057#M238391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I would also use an RGB expression instead, and assure the (Score x 255) returns values between 1 and 255.&lt;/P&gt;&lt;P&gt;The red(x) does not actually give shades of red, but red with different alpha values/different oppacities which might give a slightly different result.&lt;/P&gt;&lt;P&gt;If Score has more than one value per line/bar etc., you will probably end up with black lines/bars, if you don't take care of this in the calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 14:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Colours/m-p/652057#M238391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-10T14:19:06Z</dc:date>
    </item>
  </channel>
</rss>

