<?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 why does this RGB function not work? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200688#M59124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For what it's worth, I suppose you mean you are drawing a chart (straight table, pivot table) and you want to change background colours? Please, specify your case. A dimension is a field, so your conditional should be based on fields, as well as it's possible to do it by checking value of a field, selection... where do you want to apply that color change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2010 13:33:59 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-01-05T13:33:59Z</dc:date>
    <item>
      <title>why does this RGB function not work? (sample now included)</title>
      <link>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200682#M59118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=IF(NodeActive='N',RGB(10,10,10),RGB(70,130,180))&lt;/P&gt;&lt;P&gt;i only see the second color in my dimensions.&lt;/P&gt;&lt;P&gt;When i select only the NodeActive=J in a listbox .. then i only see the first color. But with no selection i see only the second color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 10:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200682#M59118</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2010-01-05T10:03:55Z</dc:date>
    </item>
    <item>
      <title>why does this RGB function not work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200683#M59119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The expression itself looks ok to me.&lt;BR /&gt;Do you have the field NodeActive as a dimension in your table?&lt;BR /&gt;If not, you probably get multiple values for that field when you don't have any selections.&lt;/P&gt;&lt;P&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 10:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200683#M59119</guid>
      <dc:creator />
      <dc:date>2010-01-05T10:25:46Z</dc:date>
    </item>
    <item>
      <title>why does this RGB function not work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200684#M59120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With no value selected, then the value of NodeActive is undefined (null). So with no selection you would expect to see the second colour.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 10:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200684#M59120</guid>
      <dc:creator />
      <dc:date>2010-01-05T10:44:26Z</dc:date>
    </item>
    <item>
      <title>why does this RGB function not work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200685#M59121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the IF function is in a dimension ... not an expression. so there shouldnt be any multible values.&lt;/P&gt;&lt;P&gt;gorden . i understand what you mean.. but how can i make this work with no selection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 11:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200685#M59121</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2010-01-05T11:32:02Z</dc:date>
    </item>
    <item>
      <title>why does this RGB function not work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200686#M59122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Amien wrote:When i select only the NodeActive=J in a listbox .. then i only see the first color. But with no selection i see only the second color.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That's correct, because when no selections are done, NodeActive=N is false. Check as well current selection in the conditional, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if(NodeActive='N' A&lt;B&gt;ND GetFieldSelections(NodeActive) &amp;gt;= 1&lt;/B&gt;, RGB(10, 10, 10), RGB(70, 130, 180))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Change that depending on which colour do you want to see by default.&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 11:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200686#M59122</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-01-05T11:33:00Z</dc:date>
    </item>
    <item>
      <title>why does this RGB function not work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200687#M59123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but i want to change to color based on no selection .. value is in a dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 11:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200687#M59123</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2010-01-05T11:40:37Z</dc:date>
    </item>
    <item>
      <title>why does this RGB function not work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200688#M59124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For what it's worth, I suppose you mean you are drawing a chart (straight table, pivot table) and you want to change background colours? Please, specify your case. A dimension is a field, so your conditional should be based on fields, as well as it's possible to do it by checking value of a field, selection... where do you want to apply that color change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 13:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200688#M59124</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-01-05T13:33:59Z</dc:date>
    </item>
    <item>
      <title>why does this RGB function not work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200689#M59125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;companies are in the dimenisions .. i want the background of that company to be red if its not active anymore. if a company is active of not is based on the field&lt;B&gt;NodeActive..&lt;/B&gt; Working with the hierarcy function .. so i have some levels of companies as dimension.&lt;/P&gt;&lt;P&gt;i want to apply the color change in pivot .. in used dimensions and then in background color of a certain dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 13:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200689#M59125</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2010-01-05T13:59:50Z</dc:date>
    </item>
    <item>
      <title>why does this RGB function not work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200690#M59126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is an example .. seems a hierarchy issue ... i'v created a normal pivot with rgb background color change for dimensions .. and one for a hierarchy function. Help really appropriated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 21:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200690#M59126</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2010-01-05T21:58:19Z</dc:date>
    </item>
    <item>
      <title>why does this RGB function not work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200691#M59127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amien,&lt;/P&gt;&lt;P&gt;If you add an expression to the left chart, Active, you will see that all the values for Base = Base2 return No. If you do the same on the right chart and add the expression, Active_Hier, you'll see that the only row for Base2 that has Active_Hier=No is the one where it lacks a Node value in L2. Since there are two different values, Yes and No, the background color expression will determine that the value of Active_Hier is NOT No and hence the dimension background color will not be red.&lt;/P&gt;&lt;P&gt;There are man ways to skin a cat but if you only have values Yes and No for Active_Hier then you should be able to check for a minstring() to see if at least one of the values is 'No' and in that case color the dimension background.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;=IF(aggr(minstring(Active_Hier),HQ, L1)='No',Red(),White())&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 05:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200691#M59127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-06T05:44:25Z</dc:date>
    </item>
    <item>
      <title>why does this RGB function not work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200692#M59128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with L2 i do&lt;/P&gt;&lt;P&gt;=IF(aggr(minstring(Active_Hier),HQ, L2)='No',Red(),White()) .. right? i always refer to the first dimension?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;what if Active_Hier contains two options .. and i want to prefer one of the options ..&lt;/P&gt;&lt;P&gt;so if active_hier has two options, when the cell should be white() .. if there is one option and the value is 'no' then it should be red. if there is one option and this option is 'yes' can bg-color is red.&lt;/P&gt;&lt;P&gt;so really .. if there is only 1 option and that option is red, when bg-color is red. in all other cases it should be white&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2010 00:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-does-this-RGB-function-not-work-sample-now-included/m-p/200692#M59128</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2010-01-30T00:34:12Z</dc:date>
    </item>
  </channel>
</rss>

