<?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 Stacking Two Expressions on the Same Bar in a Bar Graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stacking-Two-Expressions-on-the-Same-Bar-in-a-Bar-Graph/m-p/177508#M588288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve it with data well structured.&lt;/P&gt;&lt;P&gt;Try to have a file like this&lt;/P&gt;&lt;P&gt;Create a field metric with only 2 values, create a field forecast where is null for metric = Budget&lt;/P&gt;&lt;P&gt;Then create a bar stack bar chart with Metric as dimension and 2 expressions Sum(Value) , Sum(Forecast)&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="320"&gt;&lt;COL span="4" style="width:60pt;" width="80" /&gt;&lt;TBODY&gt;&lt;TR style="height:15pt;"&gt;&lt;TD height="20" style="height:15pt;width:60pt;" width="80"&gt;Mois&lt;/TD&gt;&lt;TD style="width:60pt;" width="80"&gt;Metric&lt;/TD&gt;&lt;TD style="width:60pt;" width="80"&gt;Value&lt;/TD&gt;&lt;TD style="width:60pt;" width="80"&gt;Forecast&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="height:15pt;"&gt;1&lt;/TD&gt;&lt;TD&gt;Budget&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="height:15pt;"&gt;1&lt;/TD&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;TD align="right"&gt;70&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="height:15pt;"&gt;2&lt;/TD&gt;&lt;TD&gt;Budget&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="height:15pt;"&gt;2&lt;/TD&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD align="right"&gt;&lt;P&gt;50&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2011 18:50:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-23T18:50:49Z</dc:date>
    <item>
      <title>Stacking Two Expressions on the Same Bar in a Bar Graph</title>
      <link>https://community.qlik.com/t5/QlikView/Stacking-Two-Expressions-on-the-Same-Bar-in-a-Bar-Graph/m-p/177507#M588287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QlikView Ninjas,&lt;/P&gt;&lt;P&gt;This seems like a pretty common scenario but I cannot seem to make it work in my graph. I have three data points Budget, Actuals and Forecast. On my bar graph I want to show Budget as it's own bar but Actuals and Forecast stacked together next to budget. Something like the image below. I tried two expressions, budget and forecast + actuals = gave me two bars but the second one wasn't stacked. I added an additional dimension but that didn't work either. Then I tried with three expressions but still can't get it to work. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&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/-3912_sourceID:3912" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 17:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacking-Two-Expressions-on-the-Same-Bar-in-a-Bar-Graph/m-p/177507#M588287</guid>
      <dc:creator />
      <dc:date>2011-03-23T17:47:25Z</dc:date>
    </item>
    <item>
      <title>Stacking Two Expressions on the Same Bar in a Bar Graph</title>
      <link>https://community.qlik.com/t5/QlikView/Stacking-Two-Expressions-on-the-Same-Bar-in-a-Bar-Graph/m-p/177508#M588288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve it with data well structured.&lt;/P&gt;&lt;P&gt;Try to have a file like this&lt;/P&gt;&lt;P&gt;Create a field metric with only 2 values, create a field forecast where is null for metric = Budget&lt;/P&gt;&lt;P&gt;Then create a bar stack bar chart with Metric as dimension and 2 expressions Sum(Value) , Sum(Forecast)&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="320"&gt;&lt;COL span="4" style="width:60pt;" width="80" /&gt;&lt;TBODY&gt;&lt;TR style="height:15pt;"&gt;&lt;TD height="20" style="height:15pt;width:60pt;" width="80"&gt;Mois&lt;/TD&gt;&lt;TD style="width:60pt;" width="80"&gt;Metric&lt;/TD&gt;&lt;TD style="width:60pt;" width="80"&gt;Value&lt;/TD&gt;&lt;TD style="width:60pt;" width="80"&gt;Forecast&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="height:15pt;"&gt;1&lt;/TD&gt;&lt;TD&gt;Budget&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="height:15pt;"&gt;1&lt;/TD&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;TD align="right"&gt;70&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="height:15pt;"&gt;2&lt;/TD&gt;&lt;TD&gt;Budget&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="height:15pt;"&gt;2&lt;/TD&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD align="right"&gt;&lt;P&gt;50&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 18:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacking-Two-Expressions-on-the-Same-Bar-in-a-Bar-Graph/m-p/177508#M588288</guid>
      <dc:creator />
      <dc:date>2011-03-23T18:50:49Z</dc:date>
    </item>
    <item>
      <title>Stacking Two Expressions on the Same Bar in a Bar Graph</title>
      <link>https://community.qlik.com/t5/QlikView/Stacking-Two-Expressions-on-the-Same-Bar-in-a-Bar-Graph/m-p/177509#M588290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically, your problem is that you are trying to combine a Group Chart and a Stacked Chart, and it doesn't work together. So, you need to trick QlikView into treating it as a Stacked chart - 2 Dimensions, 1 Expression.&lt;/P&gt;&lt;P&gt;To achieve your goal, you need to create a dummy table with 2 fields, associated with each other:&lt;/P&gt;&lt;P&gt;Dimension1 Dimension2&lt;/P&gt;&lt;P&gt;Budget Budget&lt;/P&gt;&lt;P&gt;Fcst/Actual Fcst&lt;/P&gt;&lt;P&gt;Fcst/Actual Actual&lt;/P&gt;&lt;P&gt;In the expression, you'll need to validate the value of Dimension2 and use the appropriate formula.&lt;/P&gt;&lt;P&gt;Now, the first Dimension will cause creating of 2 separate bars, and the 2 values of the Second Dimension will make he bars stacked.&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 21:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacking-Two-Expressions-on-the-Same-Bar-in-a-Bar-Graph/m-p/177509#M588290</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-03-23T21:23:38Z</dc:date>
    </item>
    <item>
      <title>Stacking Two Expressions on the Same Bar in a Bar Graph</title>
      <link>https://community.qlik.com/t5/QlikView/Stacking-Two-Expressions-on-the-Same-Bar-in-a-Bar-Graph/m-p/177510#M588291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick responses. You got me thinking about the problem from a different angle. Here is how I solved the problem:&lt;/P&gt;&lt;P&gt;I reformat the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;Council&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;Type&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;Budget&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;Actual&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;Forecast&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;SAM&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;Budget&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;1000&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;SAM&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;Act+Forecast&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;800&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;EIS&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;Budget&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;5000&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;EIS&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;Act+Forecate&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;3000&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="128"&gt;&lt;P&gt;1500&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then I created a chart using Council and Type as dimensions. I used three expressions, sum(Budget), only(Actual), only(Forecast). Apparently the "only" function filters just the values I wanted. Resulting in the chart below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8750.Solution.PNG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/8750.Solution.PNG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 21:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacking-Two-Expressions-on-the-Same-Bar-in-a-Bar-Graph/m-p/177510#M588291</guid>
      <dc:creator />
      <dc:date>2011-03-23T21:52:52Z</dc:date>
    </item>
  </channel>
</rss>

