<?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: Background Chart Expression Color using Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Background-Chart-Expression-Color-using-Set-Analysis/m-p/328128#M1181646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried aggr() in an early test although I'm not too confident with that function yet so was unable to get it working. I thought I may and end with a ridiculous number of IF statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly. Thanks for you support, hope you have a Happy New Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Dec 2011 09:23:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-30T09:23:27Z</dc:date>
    <item>
      <title>Background Chart Expression Color using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Chart-Expression-Color-using-Set-Analysis/m-p/328126#M1181644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Hope you all had a good Christmas and apologies if this is a simple question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Note - Example Attached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use set analysis to set the rgb() of a chart expression background without much luck. Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've set up a 'Heat Map' table which I want to use to show additional percentage information on a chart. I'm using some simple set &lt;/P&gt;analysis to reference the colour table although the results are not as expected.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example QV QVW should hopefully explain a little better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 11:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Chart-Expression-Color-using-Set-Analysis/m-p/328126#M1181644</guid>
      <dc:creator />
      <dc:date>2011-12-29T11:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Background Chart Expression Color using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Chart-Expression-Color-using-Set-Analysis/m-p/328127#M1181645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A set is calculated for an entire chart, not for a row of the chart.&amp;nbsp; The same is true of dollar sign expansion.&amp;nbsp; So your $(=sum(Value)) calculates the total value.&amp;nbsp; This total value is much higher than your table allows, so there are no RGB values to be found.&amp;nbsp; Even if it found one, it would apply the same value to every bar in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll want to do this without set analysis and without dollar sign expansion if you want a different color for every bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These seem to work, if I understood what you want.&amp;nbsp; There might be a simpler solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;only(aggr(if(HeatMapId=sum(Value),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;rgb(HeatMapRed,HeatMapGreen,HeatMapBlue)),HeatMapId,DateNum))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;only(aggr(if(HeatMapId=round(sum(Value)/sum(total Value)*100/2),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;rgb(HeatMapRed,HeatMapGreen,HeatMapBlue)),HeatMapId,DateNum))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 20:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Chart-Expression-Color-using-Set-Analysis/m-p/328127#M1181645</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-12-29T20:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Background Chart Expression Color using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Chart-Expression-Color-using-Set-Analysis/m-p/328128#M1181646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried aggr() in an early test although I'm not too confident with that function yet so was unable to get it working. I thought I may and end with a ridiculous number of IF statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly. Thanks for you support, hope you have a Happy New Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 09:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Chart-Expression-Color-using-Set-Analysis/m-p/328128#M1181646</guid>
      <dc:creator />
      <dc:date>2011-12-30T09:23:27Z</dc:date>
    </item>
  </channel>
</rss>

