<?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 Chart Line Color based on Dimension Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-Line-Color-based-on-Dimension-Value/m-p/200411#M58943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I recall needing to specify the RGB values separately:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Brand,BrandRed,BrandGreen,BrandBlue&lt;BR /&gt;Brand A, 0, 0, 0&lt;BR /&gt;Brand B, 255, 0, 0&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;And then:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;=rgb(BrandRed,BrandGreen,BrandBlue)&lt;/P&gt;&lt;P&gt;Edit: And I'm going to guess that the reason your current approach isn't working is that the dollar sign expansion is probably happening BEFORE it gets down to looking at a single row. If so, then at that point, you'd probably get null returned for the color expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Sep 2010 01:39:45 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-09-15T01:39:45Z</dc:date>
    <item>
      <title>Chart Line Color based on Dimension Value</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Line-Color-based-on-Dimension-Value/m-p/200408#M58940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a Line Chart which shows monthly values for various brands. The dimensions are Month and BrandName.&lt;BR /&gt;Each BrandName creates a line over the months.&lt;/P&gt;&lt;P&gt;I would like to have fixed line colors by brand, i.e. I want to define Brand A = black (RGB(0,0,0)), Brand B = red, etc.&lt;BR /&gt;I have a table which deliveres BrandName and BrandColor.&lt;/P&gt;&lt;P&gt;BrandColor contains a text(!) which represents the RGB formula, e.g. "RGB(0,0,0)".&lt;/P&gt;&lt;P&gt;I use the the BackgroundColor property of my Expression to set the color by formula: =$(=BrandColor)&lt;/P&gt;&lt;P&gt;This works fine when I select a specfic BrandName, i.e. the line color changes to the defned BrandColor.&lt;BR /&gt;But when no BrandName is selected (which is the desired case, as I want to do a brand comparison), the 'trick' does not work.&lt;/P&gt;&lt;P&gt;Any idea what to look at?&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;P&gt;PS: Defining the 18 color values and trying to ensure that the BrandNames somehow fit into the right line number does not sound as good solution to me, although I experimented in that direction. If you have a working solution utilizing the Color-Formulas rather than the Background property, I do not mind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 14:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Line-Color-based-on-Dimension-Value/m-p/200408#M58940</guid>
      <dc:creator />
      <dc:date>2010-09-14T14:55:07Z</dc:date>
    </item>
    <item>
      <title>Chart Line Color based on Dimension Value</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Line-Color-based-on-Dimension-Value/m-p/200409#M58941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Have you tried cheking "Persistent Colors" in the "Colors" tab of your chart? It may save you some time.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 15:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Line-Color-based-on-Dimension-Value/m-p/200409#M58941</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-14T15:05:09Z</dc:date>
    </item>
    <item>
      <title>Chart Line Color based on Dimension Value</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Line-Color-based-on-Dimension-Value/m-p/200410#M58942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Miguel,&lt;/P&gt;&lt;P&gt;yes - I checked that, but either it just doesn't do what I want, or I do not uderstand it.&lt;/P&gt;&lt;P&gt;I understand 'persistent colors' as a feature, where (in my case) Brands keep the same color, no matter whether I selected 5 or 10 Brands.&lt;BR /&gt;This is just partially what I need.&lt;/P&gt;&lt;P&gt;I also need to define a way to define, that Brand A is always black, Brand B is always red, etc.&lt;BR /&gt;This color definition is loaded together with the data and may change, whenever 'somebody outside the QV Designer group' thinks it is necessary.&lt;/P&gt;&lt;P&gt;Any idea?&lt;BR /&gt;Thanks,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 15:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Line-Color-based-on-Dimension-Value/m-p/200410#M58942</guid>
      <dc:creator />
      <dc:date>2010-09-14T15:16:19Z</dc:date>
    </item>
    <item>
      <title>Chart Line Color based on Dimension Value</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Line-Color-based-on-Dimension-Value/m-p/200411#M58943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I recall needing to specify the RGB values separately:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Brand,BrandRed,BrandGreen,BrandBlue&lt;BR /&gt;Brand A, 0, 0, 0&lt;BR /&gt;Brand B, 255, 0, 0&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;And then:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;=rgb(BrandRed,BrandGreen,BrandBlue)&lt;/P&gt;&lt;P&gt;Edit: And I'm going to guess that the reason your current approach isn't working is that the dollar sign expansion is probably happening BEFORE it gets down to looking at a single row. If so, then at that point, you'd probably get null returned for the color expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 01:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Line-Color-based-on-Dimension-Value/m-p/200411#M58943</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-15T01:39:45Z</dc:date>
    </item>
    <item>
      <title>Chart Line Color based on Dimension Value</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Line-Color-based-on-Dimension-Value/m-p/200412#M58944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;Great! That worked!&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 08:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Line-Color-based-on-Dimension-Value/m-p/200412#M58944</guid>
      <dc:creator />
      <dc:date>2010-09-15T08:00:30Z</dc:date>
    </item>
  </channel>
</rss>

