<?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 Need expert advice : Conditional Bar Chart Colour Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-expert-advice-Conditional-Bar-Chart-Colour-Expression/m-p/452912#M169010</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 posted a while back for some help on how to format an individual bar to a certain colour based on a conditional expression. Unfortunately I was unable to get help and still have this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression in the 'background colour' for my expression is the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(sum({&amp;lt;CalendarMonthAndYear={'&amp;gt;=$(v12MonthMin)&amp;lt;=$(v12MonthMax)'}&amp;gt;}Cost)+&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sum({&amp;lt;CalendarMonthAndYear={'&amp;gt;=$(v12MonthMin)&amp;lt;=$(v12MonthMax)'}&amp;gt;}HistoricCostTrendCost))=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MaxString(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RangeMax(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Max(TOTAL aggr(sum({$&amp;lt;CalendarMonthAndYear={'&amp;gt;=$(v12MonthMin)&amp;lt;=$(v12MonthMax)'},CallType={'o'}&amp;gt;}Cost),CalendarMonthAndYear)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Max(TOTAL aggr(sum({$&amp;lt;CalendarMonthAndYear={'&amp;gt;=$(v12MonthMin)&amp;lt;=$(v12MonthMax)'}&amp;gt;}HistoricCostTrendCost),CalendarMonthAndYear)))),red(),green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CalendarMonthAndYear={'&amp;gt;=$(v12MonthMin)&amp;lt;=$(v12MonthMax)'}&amp;gt;}Cost)+&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CalendarMonthAndYear={'&amp;gt;=$(v12MonthMin)&amp;lt;=$(v12MonthMax)'}&amp;gt;}HistoricCostTrendCost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the actual expression that sums up the cost for each calendarmonthandyear (i have this as the dimension in the bar chart). So my conditional expression says when the sum of that value equals the max aggregated value over the whole term, then colour that. My output is always green for every bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its cause I need to aggregate again to ensure that it is still not doing it by calendarmonthandyear, but not sure how I would get this to work. Individually both expressions work great. The maxstring gives me in a text box the value I am looking for, so why can't this in the conditional give me the same result. my thinking says thats its because in my chart I have used calendarmonthandyear as the dimension. Anyway, if anyone knows what I am doing wrong, please help me out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2013 08:35:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-20T08:35:03Z</dc:date>
    <item>
      <title>Need expert advice : Conditional Bar Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-expert-advice-Conditional-Bar-Chart-Colour-Expression/m-p/452912#M169010</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 posted a while back for some help on how to format an individual bar to a certain colour based on a conditional expression. Unfortunately I was unable to get help and still have this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression in the 'background colour' for my expression is the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(sum({&amp;lt;CalendarMonthAndYear={'&amp;gt;=$(v12MonthMin)&amp;lt;=$(v12MonthMax)'}&amp;gt;}Cost)+&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sum({&amp;lt;CalendarMonthAndYear={'&amp;gt;=$(v12MonthMin)&amp;lt;=$(v12MonthMax)'}&amp;gt;}HistoricCostTrendCost))=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MaxString(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RangeMax(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Max(TOTAL aggr(sum({$&amp;lt;CalendarMonthAndYear={'&amp;gt;=$(v12MonthMin)&amp;lt;=$(v12MonthMax)'},CallType={'o'}&amp;gt;}Cost),CalendarMonthAndYear)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Max(TOTAL aggr(sum({$&amp;lt;CalendarMonthAndYear={'&amp;gt;=$(v12MonthMin)&amp;lt;=$(v12MonthMax)'}&amp;gt;}HistoricCostTrendCost),CalendarMonthAndYear)))),red(),green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CalendarMonthAndYear={'&amp;gt;=$(v12MonthMin)&amp;lt;=$(v12MonthMax)'}&amp;gt;}Cost)+&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CalendarMonthAndYear={'&amp;gt;=$(v12MonthMin)&amp;lt;=$(v12MonthMax)'}&amp;gt;}HistoricCostTrendCost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the actual expression that sums up the cost for each calendarmonthandyear (i have this as the dimension in the bar chart). So my conditional expression says when the sum of that value equals the max aggregated value over the whole term, then colour that. My output is always green for every bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its cause I need to aggregate again to ensure that it is still not doing it by calendarmonthandyear, but not sure how I would get this to work. Individually both expressions work great. The maxstring gives me in a text box the value I am looking for, so why can't this in the conditional give me the same result. my thinking says thats its because in my chart I have used calendarmonthandyear as the dimension. Anyway, if anyone knows what I am doing wrong, please help me out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 08:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-expert-advice-Conditional-Bar-Chart-Colour-Expression/m-p/452912#M169010</guid>
      <dc:creator />
      <dc:date>2013-02-20T08:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need expert advice : Conditional Bar Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-expert-advice-Conditional-Bar-Chart-Colour-Expression/m-p/452913#M169011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bump! comeon guys, there must be someone that knows how to do this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 13:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-expert-advice-Conditional-Bar-Chart-Colour-Expression/m-p/452913#M169011</guid>
      <dc:creator />
      <dc:date>2013-02-20T13:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need expert advice : Conditional Bar Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-expert-advice-Conditional-Bar-Chart-Colour-Expression/m-p/452914#M169012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it possible to upload the sample application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 09:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-expert-advice-Conditional-Bar-Chart-Colour-Expression/m-p/452914#M169012</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-02-25T09:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need expert advice : Conditional Bar Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-expert-advice-Conditional-Bar-Chart-Colour-Expression/m-p/452915#M169013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you make it simple Question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-expert-advice-Conditional-Bar-Chart-Colour-Expression/m-p/452915#M169013</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-03-05T12:55:36Z</dc:date>
    </item>
  </channel>
</rss>

