<?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 Multiple Bars on stacked bar graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Bars-on-stacked-bar-graph/m-p/264570#M1204987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;I hope you can help with this,&lt;/P&gt;&lt;P&gt;I have built a stacked Bar graph to show the percentage of gender in my dataset. I have three options (male, female, unknown), using expression for each gender:&lt;/P&gt;&lt;P&gt;(&lt;B&gt;count&lt;/B&gt; ({$*&amp;lt;&lt;B&gt;gender&lt;/B&gt;={&lt;B&gt;"male"&lt;/B&gt;}&amp;gt;} &lt;B&gt;gender&lt;/B&gt;))/&lt;B&gt;count&lt;/B&gt; (&lt;B&gt;gender&lt;/B&gt;) (repeated with female and unknown as separate expressions)&lt;/P&gt;&lt;P&gt;And the stacked option on the presentation graph. I have made two selections on my data set; company name and SICode.&lt;/P&gt;&lt;P&gt;I wish to put a comparison bar next to the one I have created to disregard the selection for Company name and have come up with the following expression:&lt;/P&gt;&lt;P&gt;&lt;B&gt;Count&lt;/B&gt; ({$&amp;lt;&lt;B&gt;CompanyName&lt;/B&gt;=,&lt;B&gt;gender&lt;/B&gt;={&lt;B&gt;"Male"&lt;/B&gt;}&amp;gt;}&lt;B&gt;gender&lt;/B&gt;)/&lt;B&gt;Count&lt;/B&gt; ({$&amp;lt;&lt;B&gt;CompanyName&lt;/B&gt;=&amp;gt;}&lt;B&gt;gender&lt;/B&gt;) (again repeated for female and unknown)&lt;/P&gt;&lt;P&gt;I can't however get them in a stacked format on the same graph.&lt;/P&gt;&lt;P&gt;I can get 6 bars on the graph (one for each variable). If I use the Dimension Gender It will put male female on the Y axis and not in the legend (and there fore not stacked ) in the way I require.&lt;/P&gt;&lt;P&gt;I would be very grateful if some one could help me with this query&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jul 2010 10:42:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-07T10:42:23Z</dc:date>
    <item>
      <title>Multiple Bars on stacked bar graph</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Bars-on-stacked-bar-graph/m-p/264570#M1204987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;I hope you can help with this,&lt;/P&gt;&lt;P&gt;I have built a stacked Bar graph to show the percentage of gender in my dataset. I have three options (male, female, unknown), using expression for each gender:&lt;/P&gt;&lt;P&gt;(&lt;B&gt;count&lt;/B&gt; ({$*&amp;lt;&lt;B&gt;gender&lt;/B&gt;={&lt;B&gt;"male"&lt;/B&gt;}&amp;gt;} &lt;B&gt;gender&lt;/B&gt;))/&lt;B&gt;count&lt;/B&gt; (&lt;B&gt;gender&lt;/B&gt;) (repeated with female and unknown as separate expressions)&lt;/P&gt;&lt;P&gt;And the stacked option on the presentation graph. I have made two selections on my data set; company name and SICode.&lt;/P&gt;&lt;P&gt;I wish to put a comparison bar next to the one I have created to disregard the selection for Company name and have come up with the following expression:&lt;/P&gt;&lt;P&gt;&lt;B&gt;Count&lt;/B&gt; ({$&amp;lt;&lt;B&gt;CompanyName&lt;/B&gt;=,&lt;B&gt;gender&lt;/B&gt;={&lt;B&gt;"Male"&lt;/B&gt;}&amp;gt;}&lt;B&gt;gender&lt;/B&gt;)/&lt;B&gt;Count&lt;/B&gt; ({$&amp;lt;&lt;B&gt;CompanyName&lt;/B&gt;=&amp;gt;}&lt;B&gt;gender&lt;/B&gt;) (again repeated for female and unknown)&lt;/P&gt;&lt;P&gt;I can't however get them in a stacked format on the same graph.&lt;/P&gt;&lt;P&gt;I can get 6 bars on the graph (one for each variable). If I use the Dimension Gender It will put male female on the Y axis and not in the legend (and there fore not stacked ) in the way I require.&lt;/P&gt;&lt;P&gt;I would be very grateful if some one could help me with this query&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 10:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Bars-on-stacked-bar-graph/m-p/264570#M1204987</guid>
      <dc:creator />
      <dc:date>2010-07-07T10:42:23Z</dc:date>
    </item>
  </channel>
</rss>

