<?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 Background Color based on field value dynamically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Background-Color-based-on-field-value-dynamically/m-p/192435#M54090</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 tend to think you should store the actual r, g, and b values as separate fields rather than the full string including the rgb() function call&lt;/P&gt;&lt;P&gt;The formula to get the background color would then be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=rgb(r,g,b)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You can simulate this on your own app as follows (the formula parses the "Couleur" string to find the r, g and b componants).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=rgb(textbetween(Couleur,'(',','),textbetween(Couleur,',',','),textbetween(Couleur,',',')') )&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hilaire&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Mar 2010 18:16:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-24T18:16:37Z</dc:date>
    <item>
      <title>Background Color based on field value dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-based-on-field-value-dynamically/m-p/192433#M54088</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 would like to apply background color in a bar chart based on field values.&lt;/P&gt;&lt;P&gt;In the example attached, i have rgb values stored in a table for each product and i tried to apply those rgb values as background color of bars. I only have a good result when i perform a selection on a single product. When no selection is made QlikView doesn't seem to understand it.&lt;/P&gt;&lt;P&gt;Is there a way to achieve dynamic color based on those stored rgb values?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 16:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-based-on-field-value-dynamically/m-p/192433#M54088</guid>
      <dc:creator />
      <dc:date>2010-03-24T16:06:55Z</dc:date>
    </item>
    <item>
      <title>Background Color based on field value dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-based-on-field-value-dynamically/m-p/192434#M54089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the variable shows what is selected, you need something more in the line of an if-statement or another formula (use the ASCII-code for each character for instance to calculate a colour).&lt;/P&gt;&lt;P&gt;See sample attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 17:14:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-based-on-field-value-dynamically/m-p/192434#M54089</guid>
      <dc:creator />
      <dc:date>2010-03-24T17:14:46Z</dc:date>
    </item>
    <item>
      <title>Background Color based on field value dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-based-on-field-value-dynamically/m-p/192435#M54090</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 tend to think you should store the actual r, g, and b values as separate fields rather than the full string including the rgb() function call&lt;/P&gt;&lt;P&gt;The formula to get the background color would then be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=rgb(r,g,b)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You can simulate this on your own app as follows (the formula parses the "Couleur" string to find the r, g and b componants).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=rgb(textbetween(Couleur,'(',','),textbetween(Couleur,',',','),textbetween(Couleur,',',')') )&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hilaire&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 18:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-based-on-field-value-dynamically/m-p/192435#M54090</guid>
      <dc:creator />
      <dc:date>2010-03-24T18:16:37Z</dc:date>
    </item>
    <item>
      <title>Background Color based on field value dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-based-on-field-value-dynamically/m-p/192436#M54091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. That's indeed perfectly working with separate fields R, G and B.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 19:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-based-on-field-value-dynamically/m-p/192436#M54091</guid>
      <dc:creator />
      <dc:date>2010-03-24T19:43:56Z</dc:date>
    </item>
  </channel>
</rss>

