<?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 Bar Color Based on Calculated Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-Color-Based-on-Calculated-Dimension/m-p/638151#M233944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar chart with 1 dimension that is a calculated dimension. Specifically,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(floor(Sales,vStdev,vMedian),'$#,##0.00'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Sales is a regular dimension corresponding to a numerical value, vStdev is the standard deviation of Sales, and vMedian is the median of Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bar chart's expression then counts the number of Sales within each bucket (calculated dimension), i.e., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have only the bar corresponding to the median value be green. I am attempting to accomplish this via the 'Background Color' option of my expression with to following expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Num(floor(Sales,vStdev,vMedian),'#,##0.00')=Num(vMedian,'#,##0.00'),Green()),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated. I have attached a sample qvw illustrating my problem and desired outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2014 14:53:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-19T14:53:06Z</dc:date>
    <item>
      <title>Bar Color Based on Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Color-Based-on-Calculated-Dimension/m-p/638151#M233944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar chart with 1 dimension that is a calculated dimension. Specifically,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(floor(Sales,vStdev,vMedian),'$#,##0.00'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Sales is a regular dimension corresponding to a numerical value, vStdev is the standard deviation of Sales, and vMedian is the median of Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bar chart's expression then counts the number of Sales within each bucket (calculated dimension), i.e., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have only the bar corresponding to the median value be green. I am attempting to accomplish this via the 'Background Color' option of my expression with to following expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Num(floor(Sales,vStdev,vMedian),'#,##0.00')=Num(vMedian,'#,##0.00'),Green()),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated. I have attached a sample qvw illustrating my problem and desired outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 14:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Color-Based-on-Calculated-Dimension/m-p/638151#M233944</guid>
      <dc:creator />
      <dc:date>2014-05-19T14:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Color Based on Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Color-Based-on-Calculated-Dimension/m-p/638152#M233945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out. The solution is to use the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Num(floor(Avg(Sales),vStdev,vMedian),'#,##0.00')=Num(vMedian,'#,##0.00'),Green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for 'Background Color'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 19:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Color-Based-on-Calculated-Dimension/m-p/638152#M233945</guid>
      <dc:creator />
      <dc:date>2014-05-19T19:38:46Z</dc:date>
    </item>
  </channel>
</rss>

