<?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: Change chart's color in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-chart-s-color/m-p/1705033#M724850</link>
    <description>&lt;P&gt;You can include similar set analysis in firstsortedvalue(), like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=If(firstsortedvalue( &lt;STRONG&gt;{&amp;lt;STCK={'CVCB3'}&amp;gt;}&lt;/STRONG&gt; VDAF, -DVPG, 1) &amp;gt; firstsortedvalue(&lt;STRONG&gt;{&amp;lt;STCK={'CVCB3'}&amp;gt;}&lt;/STRONG&gt; VDAF, -DVPG, 2), color(2), color(3))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2020 05:54:21 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2020-05-26T05:54:21Z</dc:date>
    <item>
      <title>Change chart's color</title>
      <link>https://community.qlik.com/t5/QlikView/Change-chart-s-color/m-p/1705031#M724849</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a line chart where:&amp;nbsp;&lt;BR /&gt;DVPG is a Date dimension, and this is the expression:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;=avg({1 &amp;lt;STCK={'CVCB3'}, DVPG={"&amp;gt;$(=Date(Addmonths(Today(), -3)))"}&amp;gt;} VDAF)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I would like to color the entire chart based on the comparison between the last two available value of VDAF for STCK='CVCB3'... how can I do it?&lt;/P&gt;&lt;P&gt;I would like to do something like this:&lt;/P&gt;&lt;P&gt;=If(firstsortedvalue(VDAF, -DVPG, 1) &amp;gt; firstsortedvalue(VDAF, -DVPG, 2), color(2), color(3))&lt;BR /&gt;But his expression must consider only the STCK=CVCB3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do it?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-chart-s-color/m-p/1705031#M724849</guid>
      <dc:creator>brunolelli87</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change chart's color</title>
      <link>https://community.qlik.com/t5/QlikView/Change-chart-s-color/m-p/1705033#M724850</link>
      <description>&lt;P&gt;You can include similar set analysis in firstsortedvalue(), like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=If(firstsortedvalue( &lt;STRONG&gt;{&amp;lt;STCK={'CVCB3'}&amp;gt;}&lt;/STRONG&gt; VDAF, -DVPG, 1) &amp;gt; firstsortedvalue(&lt;STRONG&gt;{&amp;lt;STCK={'CVCB3'}&amp;gt;}&lt;/STRONG&gt; VDAF, -DVPG, 2), color(2), color(3))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 05:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-chart-s-color/m-p/1705033#M724850</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-05-26T05:54:21Z</dc:date>
    </item>
  </channel>
</rss>

