<?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: Line chart - colors by experssion and aggregation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Line-chart-colors-by-experssion-and-aggregation/m-p/1192388#M22447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer, of course an example is better see in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way is for you to use the bookmark "Problem"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can there the color I expect for each line should match this :&lt;/P&gt;&lt;P&gt; &lt;IMG alt="legend.png" class="jive-image image-1" height="155" src="https://community.qlik.com/legacyfs/online/141939_legend.png" style="height: 155.413px; width: 436px;" width="436" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How ever the graph color don't match : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="graph_error.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/141940_graph_error.png" style="height: 377px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I can see that the problem come from the fact that we introduced the date in the line chart (I reproduced the same problem in a table),&amp;nbsp; I have been using the aggr function to solve this without any success. If you have any idea about how to solve it let me know. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2016 02:00:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-26T02:00:34Z</dc:date>
    <item>
      <title>Line chart - colors by experssion and aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Line-chart-colors-by-experssion-and-aggregation/m-p/1192386#M22445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am trying to change the color of a line chart depending on the rank of an indicator in a different expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I use the following expression : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr(num(rank(aggr(count( {&amp;lt;&amp;nbsp; Group = {"hospitality"},statistic_id -= {"general_feeling"} , value ={"&amp;gt;=3"}, status = {"approved"}&amp;gt; } [Feedbacks.%FEEDBACK]),statistic_id),4,1)),statistic_id)=Num(1), rgb(50,203,255),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(&lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr(num(rank(aggr(count( {&amp;lt;&amp;nbsp; Group = {"hospitality"},statistic_id -= {"general_feeling"} , value ={"&amp;gt;=3"}, status = {"approved"}&amp;gt; } [Feedbacks.%FEEDBACK]),statistic_id),4,1)),statistic_id)=Num(2),rgb(0,176,240),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(&lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr(num(rank(aggr(count( {&amp;lt;&amp;nbsp; Group = {"hospitality"},statistic_id -= {"general_feeling"} , value ={"&amp;gt;=3"}, status = {"approved"}&amp;gt; } [Feedbacks.%FEEDBACK]),statistic_id),4,1)),statistic_id)=Num(3),rgb(51,102,153),blue())&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the problem if&amp;nbsp; I use this expression in the line chart, plotting through time, for each date the rank is re-evaluated. &lt;/P&gt;&lt;P&gt;I am trying to make it consistent through time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I couldn't find any related issue, but please let me know if this is a duplicate) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 10:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-chart-colors-by-experssion-and-aggregation/m-p/1192386#M22445</guid>
      <dc:creator />
      <dc:date>2016-10-25T10:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - colors by experssion and aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Line-chart-colors-by-experssion-and-aggregation/m-p/1192387#M22446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 16:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-chart-colors-by-experssion-and-aggregation/m-p/1192387#M22446</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-25T16:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - colors by experssion and aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Line-chart-colors-by-experssion-and-aggregation/m-p/1192388#M22447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer, of course an example is better see in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way is for you to use the bookmark "Problem"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can there the color I expect for each line should match this :&lt;/P&gt;&lt;P&gt; &lt;IMG alt="legend.png" class="jive-image image-1" height="155" src="https://community.qlik.com/legacyfs/online/141939_legend.png" style="height: 155.413px; width: 436px;" width="436" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How ever the graph color don't match : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="graph_error.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/141940_graph_error.png" style="height: 377px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I can see that the problem come from the fact that we introduced the date in the line chart (I reproduced the same problem in a table),&amp;nbsp; I have been using the aggr function to solve this without any success. If you have any idea about how to solve it let me know. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 02:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-chart-colors-by-experssion-and-aggregation/m-p/1192388#M22447</guid>
      <dc:creator />
      <dc:date>2016-10-26T02:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart - colors by experssion and aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Line-chart-colors-by-experssion-and-aggregation/m-p/1192389#M22448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any chance anyone have an answer on this ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 09:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-chart-colors-by-experssion-and-aggregation/m-p/1192389#M22448</guid>
      <dc:creator />
      <dc:date>2016-11-01T09:21:03Z</dc:date>
    </item>
  </channel>
</rss>

