<?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 Stacked bar chart problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293123#M870225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two types of hours.&lt;/P&gt;&lt;P&gt;Hours 1 are shown at the process level.&lt;/P&gt;&lt;P&gt;Hours 2 are shown at the sub-process level. I was initially told that Hours1 &amp;gt; Hours2 always.&lt;/P&gt;&lt;P&gt;My bar chart needs to show stacked Hours2 and Hours3 (which represent the difference of Hours1-Hours2).&lt;/P&gt;&lt;P&gt;My bar chart works well, unless&amp;nbsp; Hours1&amp;lt;Hours2 (which sometimes happens). I really don't need to show negative difference. It doesn't have to be a difference at all, just a separate category. I am sure there is a better way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Stacked bar chart problem</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293123#M870225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two types of hours.&lt;/P&gt;&lt;P&gt;Hours 1 are shown at the process level.&lt;/P&gt;&lt;P&gt;Hours 2 are shown at the sub-process level. I was initially told that Hours1 &amp;gt; Hours2 always.&lt;/P&gt;&lt;P&gt;My bar chart needs to show stacked Hours2 and Hours3 (which represent the difference of Hours1-Hours2).&lt;/P&gt;&lt;P&gt;My bar chart works well, unless&amp;nbsp; Hours1&amp;lt;Hours2 (which sometimes happens). I really don't need to show negative difference. It doesn't have to be a difference at all, just a separate category. I am sure there is a better way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293123#M870225</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart problem</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293124#M870226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression for Hours3:&lt;/P&gt;&lt;P&gt;=if(Sum(DISTINCT Hours1) - Sum (Hours2)&amp;lt;0,0,Sum (DISTINCT Hours1) - Sum (Hours2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 18:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293124#M870226</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2016-11-22T18:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart problem</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293125#M870227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;m w,&amp;nbsp; thank you for the answer. That fixed some extra brackets in the attached example. But this still doesn't solve the issue. e.g.: Process A has 5 Hours2 and&amp;nbsp; 4 Hours1&amp;nbsp; - Only Hours2 are shown. I need to show both Hours2 and Hours3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 18:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293125#M870227</guid>
      <dc:creator />
      <dc:date>2016-11-22T18:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart problem</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293126#M870228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought that Hours 3 by definition in your expression was zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want Hours3 to be negative and you don't want it to be zero, what do you want it to be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 19:20:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293126#M870228</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2016-11-22T19:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart problem</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293127#M870229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. My expression is incorrect (it was a workaround based on the assumption that the difference will always be positive). But what I want to show is Hours2 and Hours3 stacked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 19:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293127#M870229</guid>
      <dc:creator />
      <dc:date>2016-11-22T19:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart problem</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293128#M870230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want Hours3 to always be positive, you can wrap it in the fabs() function:&lt;/P&gt;&lt;P&gt;fabs(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum (DISTINCT Hours1) - Sum (Hours2))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-bar-chart-problem/m-p/1293128#M870230</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2016-11-22T20:02:08Z</dc:date>
    </item>
  </channel>
</rss>

