<?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: How to make only selected line chart diff color from other ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-only-selected-line-chart-diff-color-from-other/m-p/624093#M547602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I redo the chart using&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- your dimensions &lt;/P&gt;&lt;P&gt;year, COMPETITOR&lt;/P&gt;&lt;P&gt;- your expression (+ COMPETITOR in bold)&amp;nbsp; &lt;/P&gt;&lt;P&gt;sum({$&amp;lt;&lt;STRONG&gt;COMPETITOR=&lt;/STRONG&gt;, year = {"&amp;gt;=$(=max(year),4)"}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;} REVENUE_C)/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- background color &lt;/P&gt;&lt;P&gt;if(isnull(only([COMPETITOR])) ,ARGB(100,200,200,200),ARGB(190,43, 123, 70))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="106782.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/52859_106782.jpg" style="width: 620px; height: 304px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Feb 2014 22:14:05 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-02-08T22:14:05Z</dc:date>
    <item>
      <title>How to make only selected line chart diff color from other ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-only-selected-line-chart-diff-color-from-other/m-p/624091#M547600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog" title="http://community.qlik.com/blogs/qlikviewdesignblog"&gt;http://community.qlik.com/blogs/qlikviewdesignblog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just happen to look at the latest blog design post , and i try to do it for my application , it does not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my app i only have one field that that is COMPETITOR . But in the blog post , it have 2 field :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store&lt;/P&gt;&lt;P&gt;Store Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i am not able to understand how can i get 2 field ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Feb 2014 20:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-only-selected-line-chart-diff-color-from-other/m-p/624091#M547600</guid>
      <dc:creator />
      <dc:date>2014-02-08T20:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to make only selected line chart diff color from other ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-only-selected-line-chart-diff-color-from-other/m-p/624092#M547601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way you had the highlighted line showing would only work if there was only one selected COMPETITOR.&amp;nbsp; You can approach this using Set Analysis and have any possible dimension values highlighted with all the others transparent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example the Set Analysis around year was causing confusion, so I took it out, similarly with the Dimension Limits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression was then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;COMPETITOR=&amp;gt;} REVENUE_C)/1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the Background Colour expression was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(sum(REVENUE_C) &amp;gt; 0 ,RGB(43, 123, 70),ARGB(30,0,0,0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This then gives a chart like this when two values are selected:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="08-02-2014 21-20-25.png" class="jive-image" src="/legacyfs/online/52856_08-02-2014 21-20-25.png" /&gt;&lt;/P&gt;&lt;P&gt;What is going on here is the &lt;STRONG&gt;COMPETITOR= &lt;/STRONG&gt;in the expression is causing the selection on the Competitors to be ignored - hence all lines show all the time.&amp;nbsp; In the colour expression we are doing the same expression in the if, but without the set analysis &lt;STRONG&gt;sum(REVENUE_C) &amp;gt; 0&lt;/STRONG&gt; , so only when the calculation without set analysis gives a result do we colour the line green, otherwise we go for a highly transparent black line - giving the result you see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because you had two outliers in your data it made the chart work less well (so I removed them), also the fact that not all competitors exist across all ten years it doesn't work quite so good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully it illustrates how to achieve what &lt;A href="https://community.qlik.com/qlik-users/25446"&gt;Arturo Muñoz&lt;/A&gt; was showing in his blog post though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Feb 2014 21:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-only-selected-line-chart-diff-color-from-other/m-p/624092#M547601</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-02-08T21:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to make only selected line chart diff color from other ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-only-selected-line-chart-diff-color-from-other/m-p/624093#M547602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I redo the chart using&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- your dimensions &lt;/P&gt;&lt;P&gt;year, COMPETITOR&lt;/P&gt;&lt;P&gt;- your expression (+ COMPETITOR in bold)&amp;nbsp; &lt;/P&gt;&lt;P&gt;sum({$&amp;lt;&lt;STRONG&gt;COMPETITOR=&lt;/STRONG&gt;, year = {"&amp;gt;=$(=max(year),4)"}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;} REVENUE_C)/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- background color &lt;/P&gt;&lt;P&gt;if(isnull(only([COMPETITOR])) ,ARGB(100,200,200,200),ARGB(190,43, 123, 70))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="106782.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/52859_106782.jpg" style="width: 620px; height: 304px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Feb 2014 22:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-only-selected-line-chart-diff-color-from-other/m-p/624093#M547602</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-08T22:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to make only selected line chart diff color from other ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-only-selected-line-chart-diff-color-from-other/m-p/624094#M547603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much , now my chart look great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 01:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-only-selected-line-chart-diff-color-from-other/m-p/624094#M547603</guid>
      <dc:creator />
      <dc:date>2014-02-09T01:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to make only selected line chart diff color from other ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-only-selected-line-chart-diff-color-from-other/m-p/624095#M547604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Massimo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just try to create another chart which is having the same purpose , below is the link :-&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/107191"&gt;How to make selected Line chart turn Green and the rest not selected turn Gray ?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just cannot get it work. Not sure why , hope you can take a look .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 15:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-only-selected-line-chart-diff-color-from-other/m-p/624095#M547604</guid>
      <dc:creator />
      <dc:date>2014-02-12T15:34:09Z</dc:date>
    </item>
  </channel>
</rss>

