<?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 Issue with stacked bar offset - negative values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-stacked-bar-offset-negative-values/m-p/837045#M294359</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 an issue with bar offset when switching to a group to split the bar-values. My issue appears when I have negative values in the data. The first offset is set correctly - but the rest is not stacked accordingly to the first value (my arrows tells you where I want it to be):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-04-15_9-37-31.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/83689_2015-04-15_9-37-31.png" style="height: 255px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the bars is not stacked there is no problem with the offsets and if the data has only positive values the bars are stacked fine. It's only when it contains negative numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-04-15_10-17-33.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/83697_2015-04-15_10-17-33.png" style="height: 214px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bars-expression is:&lt;/P&gt;&lt;P&gt;if(gui_element2='1', [1],&lt;/P&gt;&lt;P&gt;if(gui_element2='2', [2 calculated],&lt;/P&gt;&lt;P&gt;if(gui_element2='3', [3],&lt;/P&gt;&lt;P&gt;if(gui_element2='4',[4],&lt;/P&gt;&lt;P&gt;if(gui_element2='5', ([6] - [4])&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(gui_element2='6', [6],&lt;/P&gt;&lt;P&gt;))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have calculated the bar-offset like this:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(gui_element2='1', 0,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(gui_element2='2', if(rowno() = 1, (sum(total {&amp;lt;%dim={'Com1','Com2','Com3'},yearweek={$(vMaxYW_p)},month=,year=,week=&amp;gt;} fact_val)), 0),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(gui_element2='3', if(rowno() = 1, (sum(total {&amp;lt;%dim={'Com1','Com2','Com3'},yearweek={$(vMaxYW_p)},month=,year=,week=&amp;gt;} fact_val)), 0),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(gui_element2='4',0,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(gui_element2='5', if(rowno() = 1, (sum(total {&amp;lt;%dim={'Com1','Com2','Com3'},yearweek={$(vMaxYW)},month=,year=,week=&amp;gt;} fact_val)),0),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(gui_element2='6', 0,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help is much appreciated &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;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 09:47:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-15T09:47:25Z</dc:date>
    <item>
      <title>Issue with stacked bar offset - negative values</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-stacked-bar-offset-negative-values/m-p/837045#M294359</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 an issue with bar offset when switching to a group to split the bar-values. My issue appears when I have negative values in the data. The first offset is set correctly - but the rest is not stacked accordingly to the first value (my arrows tells you where I want it to be):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-04-15_9-37-31.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/83689_2015-04-15_9-37-31.png" style="height: 255px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the bars is not stacked there is no problem with the offsets and if the data has only positive values the bars are stacked fine. It's only when it contains negative numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-04-15_10-17-33.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/83697_2015-04-15_10-17-33.png" style="height: 214px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bars-expression is:&lt;/P&gt;&lt;P&gt;if(gui_element2='1', [1],&lt;/P&gt;&lt;P&gt;if(gui_element2='2', [2 calculated],&lt;/P&gt;&lt;P&gt;if(gui_element2='3', [3],&lt;/P&gt;&lt;P&gt;if(gui_element2='4',[4],&lt;/P&gt;&lt;P&gt;if(gui_element2='5', ([6] - [4])&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;if(gui_element2='6', [6],&lt;/P&gt;&lt;P&gt;))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have calculated the bar-offset like this:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(gui_element2='1', 0,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(gui_element2='2', if(rowno() = 1, (sum(total {&amp;lt;%dim={'Com1','Com2','Com3'},yearweek={$(vMaxYW_p)},month=,year=,week=&amp;gt;} fact_val)), 0),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(gui_element2='3', if(rowno() = 1, (sum(total {&amp;lt;%dim={'Com1','Com2','Com3'},yearweek={$(vMaxYW_p)},month=,year=,week=&amp;gt;} fact_val)), 0),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(gui_element2='4',0,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(gui_element2='5', if(rowno() = 1, (sum(total {&amp;lt;%dim={'Com1','Com2','Com3'},yearweek={$(vMaxYW)},month=,year=,week=&amp;gt;} fact_val)),0),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(gui_element2='6', 0,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help is much appreciated &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;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-stacked-bar-offset-negative-values/m-p/837045#M294359</guid>
      <dc:creator />
      <dc:date>2015-04-15T09:47:25Z</dc:date>
    </item>
  </channel>
</rss>

