<?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: Monthly comparison with RAG colours in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Monthly-comparison-with-RAG-colours/m-p/1297410#M516768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;would be nice to have some sample data...&lt;/P&gt;&lt;P&gt;Does the code deliver the correct results (select for one company and copy sniplets only, i.e.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Area&lt;/SPAN&gt;={'Overall'}, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=Max(Month))&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Score&lt;/SPAN&gt;) should deliver correct results,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;likewise &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Area&lt;/SPAN&gt;={'Overall'}, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=Max(Month)-1)&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Score&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Peter&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 May 2017 14:57:03 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2017-05-04T14:57:03Z</dc:date>
    <item>
      <title>Monthly comparison with RAG colours</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-comparison-with-RAG-colours/m-p/1297409#M516766</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;I'm trying to code a vertical bar chart that compares the latest month's score with the previous month and colours the latest month's bar Red or Green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I'm getting is that IF statement I'm using to change the 'Background Colour' attribute in the expression isn't splitting by dimension, but instead taking a sum of the whole data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/160829_Capture.JPG" style="width: 620px; height: 434px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the expression I'm using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;( &lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Area&lt;/SPAN&gt;={'Overall'}, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(=Max(Month))&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Score&lt;/SPAN&gt;) &amp;lt; &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Area&lt;/SPAN&gt;={'Overall'}, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(=Max(Month)-1)&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Score&lt;/SPAN&gt;), &lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;lightred&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;green&lt;/SPAN&gt;&lt;SPAN&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;The X-axis are a list of companies&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Month is a number 1 - 12&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Score is... well... the score&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Where am I going wrong guys?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Lewis&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 12:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-comparison-with-RAG-colours/m-p/1297409#M516766</guid>
      <dc:creator />
      <dc:date>2017-04-21T12:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly comparison with RAG colours</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-comparison-with-RAG-colours/m-p/1297410#M516768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;would be nice to have some sample data...&lt;/P&gt;&lt;P&gt;Does the code deliver the correct results (select for one company and copy sniplets only, i.e.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Area&lt;/SPAN&gt;={'Overall'}, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=Max(Month))&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Score&lt;/SPAN&gt;) should deliver correct results,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;likewise &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Area&lt;/SPAN&gt;={'Overall'}, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=Max(Month)-1)&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Score&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Peter&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 14:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-comparison-with-RAG-colours/m-p/1297410#M516768</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-05-04T14:57:03Z</dc:date>
    </item>
  </channel>
</rss>

