<?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: Offset in Waterfall Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Offset-in-Waterfall-Chart/m-p/670335#M541901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing it to this (assuming your actual expression is named Counter):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (GetSelectedCount(Phase_Level_Txt) = 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(rowno(total)&amp;lt;&amp;gt;1,top(total Counter),0) - rangesum(above(total Counter,0,rowno(total)-1))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2014 17:57:07 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2014-06-27T17:57:07Z</dc:date>
    <item>
      <title>Offset in Waterfall Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Offset-in-Waterfall-Chart/m-p/670334#M541900</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;In waterfall chart the offset is defined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if (GetSelectedCount(Phase_Level_Txt) = 1, 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (rowno(total) = 1, 0,top(total Counter)- rangesum((top(total Counter,2,rowno(total)))))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please explain what it does and how it positions the columns?&lt;/P&gt;&lt;P&gt;In particular I am interested in this part of the code:&lt;/P&gt;&lt;P&gt;rangesum((top(total Counter,2,rowno(total))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;The probelem does not seem to be the OFFSET, because it seems it calculates it correctly.&lt;/P&gt;&lt;P&gt;However, I can't find explanation why the chart positions first 5 (6) columns correctly, and then inserts the gaps between the two last columns taht have values 501 and 2 respectively. (please look at the picture below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="arl.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61343_arl.png" style="width: 620px; height: 140px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 11:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Offset-in-Waterfall-Chart/m-p/670334#M541900</guid>
      <dc:creator />
      <dc:date>2014-06-27T11:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in Waterfall Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Offset-in-Waterfall-Chart/m-p/670335#M541901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing it to this (assuming your actual expression is named Counter):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (GetSelectedCount(Phase_Level_Txt) = 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(rowno(total)&amp;lt;&amp;gt;1,top(total Counter),0) - rangesum(above(total Counter,0,rowno(total)-1))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 17:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Offset-in-Waterfall-Chart/m-p/670335#M541901</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-06-27T17:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in Waterfall Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Offset-in-Waterfall-Chart/m-p/670336#M541902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vlad!&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;However, the chart stayed exactly the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The confusing is - the offset is apparently calculated ok (according to the table seen in the picture above).&lt;BR /&gt;I don't get why then the chart inserts two gaps ONLY between two last elements. &lt;/P&gt;&lt;P&gt;Moreover, it seems that all other elements (red bars) are ok positioned...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 07:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Offset-in-Waterfall-Chart/m-p/670336#M541902</guid>
      <dc:creator />
      <dc:date>2014-06-30T07:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in Waterfall Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Offset-in-Waterfall-Chart/m-p/670337#M541903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vlad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have noticed also the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="save.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61411_save.png" /&gt;&lt;/P&gt;&lt;P&gt;First row (Cancelld_YN = 'N') is the starting column in the waterfall chart (bar height 6439). Here the hight is ok (6493).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the last two column in the picture I have separated the offset expressions as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column (if(rowno() = 2...) calculates like this: top(total Counter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column (rangesum_1) as this: rangesum((top(total Counter,2,rowno(total))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I notice that the rangesum_1 column does not calculate correctly. It should calculate the values in the following order: 40, 77, 80, 117, ...&amp;nbsp; So the problem should be here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 08:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Offset-in-Waterfall-Chart/m-p/670337#M541903</guid>
      <dc:creator />
      <dc:date>2014-06-30T08:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in Waterfall Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Offset-in-Waterfall-Chart/m-p/670338#M541904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dragan, update your rangesum_1 column to use what I pasted above and repost updated screenshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 19:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Offset-in-Waterfall-Chart/m-p/670338#M541904</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-06-30T19:07:32Z</dc:date>
    </item>
  </channel>
</rss>

