<?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 Line Chart Set Analysis Color Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Line-Chart-Set-Analysis-Color-Problem/m-p/555929#M1126499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a line chart with the following...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIM1: Sales_Group&lt;/P&gt;&lt;P&gt;DIM2: Employee&lt;/P&gt;&lt;P&gt;EXPR: Attainment&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13866981207987123" jivemacro_uid="_13866981207987123" modifiedtitle="true"&gt;
&lt;P&gt;=AVG({$&amp;lt;TIME_Year={$(=MAX({1}TIME_Year))},TIME_Year= &amp;gt;}&lt;/P&gt;
&lt;P&gt;IF(Enterprise='Yes',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.1*Sales_Attainment,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales_Attainment)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me one dot per employee, aligned over their sales group for the most recent year in my data.&amp;nbsp; I also wanted to color the dots to highlight those that are Enterprise-level, so under the expression 'Attainment' I wrote the following for 'Background Color'...&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13866988014955420" jivemacro_uid="_13866988014955420" modifiedtitle="true"&gt;
&lt;P&gt;=IF(Enterprise='Yes',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RGB(150,150,150),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RGB(80,80,80))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="temp.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50276_temp.JPG.jpg" style="width: 620px; height: 184px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that some of the dots are the wrong color.&amp;nbsp; Only when I set my 'Year' filter to the max year (to match the set analysis constraint) are all the colors correct.&amp;nbsp; This makes me think that there's a difference between the records the expression is using and the records that the background color formula is using.&amp;nbsp; Somehow the background color is keying on records from previous years.&amp;nbsp; How do I fix this?&amp;nbsp; Is there an easier way to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Dec 2013 18:18:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-10T18:18:30Z</dc:date>
    <item>
      <title>Line Chart Set Analysis Color Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-Set-Analysis-Color-Problem/m-p/555929#M1126499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a line chart with the following...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIM1: Sales_Group&lt;/P&gt;&lt;P&gt;DIM2: Employee&lt;/P&gt;&lt;P&gt;EXPR: Attainment&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13866981207987123" jivemacro_uid="_13866981207987123" modifiedtitle="true"&gt;
&lt;P&gt;=AVG({$&amp;lt;TIME_Year={$(=MAX({1}TIME_Year))},TIME_Year= &amp;gt;}&lt;/P&gt;
&lt;P&gt;IF(Enterprise='Yes',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.1*Sales_Attainment,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales_Attainment)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me one dot per employee, aligned over their sales group for the most recent year in my data.&amp;nbsp; I also wanted to color the dots to highlight those that are Enterprise-level, so under the expression 'Attainment' I wrote the following for 'Background Color'...&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13866988014955420" jivemacro_uid="_13866988014955420" modifiedtitle="true"&gt;
&lt;P&gt;=IF(Enterprise='Yes',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RGB(150,150,150),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RGB(80,80,80))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="temp.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50276_temp.JPG.jpg" style="width: 620px; height: 184px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that some of the dots are the wrong color.&amp;nbsp; Only when I set my 'Year' filter to the max year (to match the set analysis constraint) are all the colors correct.&amp;nbsp; This makes me think that there's a difference between the records the expression is using and the records that the background color formula is using.&amp;nbsp; Somehow the background color is keying on records from previous years.&amp;nbsp; How do I fix this?&amp;nbsp; Is there an easier way to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 18:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-Set-Analysis-Color-Problem/m-p/555929#M1126499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-10T18:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart Set Analysis Color Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-Set-Analysis-Color-Problem/m-p/555930#M1126500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark, background color expressions, like regular expressions, sometimes need set analysis. Try wrapping the word "Enterprise" in your background color expression in function only() and adding the same set analysis there as in your main expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 18:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-Set-Analysis-Color-Problem/m-p/555930#M1126500</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2013-12-10T18:25:58Z</dc:date>
    </item>
  </channel>
</rss>

