<?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 charts need bars to start from zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-charts-need-bars-to-start-from-zero/m-p/135280#M20230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below excel data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213776_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;to generate the below bar graph using YTDDimType as the dimension and the green columns as expressions (bars with data points)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/213777_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you will notice, the last bar is kind of messed up. I'm dynamically calculating the min and max values for the axis by finding the min value for negatives in this case -1163.25 and added a buffer of the steps (calculated dynamically) so -1163.25 - 400 = -1563.25 rounded off to the nearest 100's gives (1600).&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;However, the YTDFID (-1005) and YTDOtherISG (-1163) instead of starting from 0 and plotting within the negative range of (1600) is placing them on top of each other thereby causing it to be (2168) which is out of bounds hence truncated at the bottom.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could someone advise the best way to tackle this issue i.e. either be able to dynamically calculate max negative value to be (2168) so that the charts axis will be increased accordingly or any other way to resolve this. It has to be a bar chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks for your time and assistance.&lt;/P&gt;&lt;P&gt; Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2018 22:31:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-17T22:31:15Z</dc:date>
    <item>
      <title>Bar charts need bars to start from zero</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-charts-need-bars-to-start-from-zero/m-p/135280#M20230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below excel data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213776_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;to generate the below bar graph using YTDDimType as the dimension and the green columns as expressions (bars with data points)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/213777_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you will notice, the last bar is kind of messed up. I'm dynamically calculating the min and max values for the axis by finding the min value for negatives in this case -1163.25 and added a buffer of the steps (calculated dynamically) so -1163.25 - 400 = -1563.25 rounded off to the nearest 100's gives (1600).&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;However, the YTDFID (-1005) and YTDOtherISG (-1163) instead of starting from 0 and plotting within the negative range of (1600) is placing them on top of each other thereby causing it to be (2168) which is out of bounds hence truncated at the bottom.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could someone advise the best way to tackle this issue i.e. either be able to dynamically calculate max negative value to be (2168) so that the charts axis will be increased accordingly or any other way to resolve this. It has to be a bar chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks for your time and assistance.&lt;/P&gt;&lt;P&gt; Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 22:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-charts-need-bars-to-start-from-zero/m-p/135280#M20230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-17T22:31:15Z</dc:date>
    </item>
  </channel>
</rss>

