<?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 Custom bar chart coloumn based on reference line in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Custom-bar-chart-coloumn-based-on-reference-line/m-p/198402#M57714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that my suggestion got you on the right track.&lt;/P&gt;&lt;P&gt;Did you try to put the &lt;I&gt;sum(filed1)/sum(field2)&lt;/I&gt; part into the min or max functions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Nov 2010 13:41:24 GMT</pubDate>
    <dc:creator>celindho</dc:creator>
    <dc:date>2010-11-24T13:41:24Z</dc:date>
    <item>
      <title>Custom bar chart coloumn based on reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-bar-chart-coloumn-based-on-reference-line/m-p/198399#M57711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I would like to ask if this is possible in bar chart.&lt;/P&gt;&lt;P&gt;My chart is like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2904_sourceID:2904" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change the color of the part of the bar that exceeds the reference line like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2905_sourceID:2905" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? Any idea or help is much appreciated.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Nadsky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 12:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-bar-chart-coloumn-based-on-reference-line/m-p/198399#M57711</guid>
      <dc:creator />
      <dc:date>2010-11-23T12:47:41Z</dc:date>
    </item>
    <item>
      <title>Custom bar chart coloumn based on reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-bar-chart-coloumn-based-on-reference-line/m-p/198400#M57712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;As far as I know, this cannot be done directly but there are workarounds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simplest would be to make a stacked bar chart:&lt;/P&gt;&lt;P&gt;Assuming your expression in the chart is &lt;I&gt;sum(Allocation)&lt;/I&gt; and your reference line is set at &lt;I&gt;referenceValue&lt;/I&gt;, you can create two expressions, one for the blue part and one for the red part.&lt;/P&gt;&lt;P&gt;First expression: &lt;I&gt;min( sum(&lt;/I&gt;Allocation), referenceValue) - The "min" prevents the bar from growing over the reference line&lt;/P&gt;&lt;P&gt;Second expression: &lt;I&gt;max(sum(&lt;/I&gt;Allocation) - referenceValue, 0) - If the original expression value is less or equal to the reference line, we get a value of 0, otherwise we get the part that exceeds the reference line&lt;/P&gt;&lt;P&gt;By coloring the first blue and the second red, you get the desired effect. I think my solution would not work with negative or mixed sign values, but shouldn't be too hard to modify for that case also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 13:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-bar-chart-coloumn-based-on-reference-line/m-p/198400#M57712</guid>
      <dc:creator>celindho</dc:creator>
      <dc:date>2010-11-23T13:55:08Z</dc:date>
    </item>
    <item>
      <title>Custom bar chart coloumn based on reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-bar-chart-coloumn-based-on-reference-line/m-p/198401#M57713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;Thanks for the idea of using stack bar chart. The min max function seem not working on my expression (allocation is a formula sum(field1)/sum(field2) ). I used if-else condition instead.&lt;/P&gt;&lt;P&gt;Thanks for helping me out! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 13:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-bar-chart-coloumn-based-on-reference-line/m-p/198401#M57713</guid>
      <dc:creator />
      <dc:date>2010-11-24T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Custom bar chart coloumn based on reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-bar-chart-coloumn-based-on-reference-line/m-p/198402#M57714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that my suggestion got you on the right track.&lt;/P&gt;&lt;P&gt;Did you try to put the &lt;I&gt;sum(filed1)/sum(field2)&lt;/I&gt; part into the min or max functions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 13:41:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-bar-chart-coloumn-based-on-reference-line/m-p/198402#M57714</guid>
      <dc:creator>celindho</dc:creator>
      <dc:date>2010-11-24T13:41:24Z</dc:date>
    </item>
    <item>
      <title>Custom bar chart coloumn based on reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-bar-chart-coloumn-based-on-reference-line/m-p/198403#M57715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now i realized that you actually have to use the &lt;EM&gt;rangemin&lt;/EM&gt; and &lt;EM&gt;rangemax&lt;/EM&gt; functions instead of &lt;EM&gt;min&lt;/EM&gt; and&lt;EM&gt; max&lt;/EM&gt;. That way you get it working without the if statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 13:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-bar-chart-coloumn-based-on-reference-line/m-p/198403#M57715</guid>
      <dc:creator>celindho</dc:creator>
      <dc:date>2012-05-03T13:17:35Z</dc:date>
    </item>
  </channel>
</rss>

