<?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: 100% stacked bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509887#M508743</link>
    <description>&lt;P&gt;Excellent! Please mark the example as correct, so that others will see it when they search. Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2018 15:44:27 GMT</pubDate>
    <dc:creator>lblumenfeld</dc:creator>
    <dc:date>2018-11-20T15:44:27Z</dc:date>
    <item>
      <title>100% stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509319#M508738</link>
      <description>&lt;P&gt;I created a stacked bar chart where the Y-axis is Manager Level and the X-Axis is Headcount #s.&amp;nbsp; The other dimension besides Manager Level is Gender.&amp;nbsp; Each bar shows a total headcount # for each of our Manager Levels, and each bar is broken up by Male and Female.&lt;/P&gt;&lt;P&gt;Currently, the #s displayed represent actual headcount #s.&amp;nbsp; I am trying to change the "#s" to a % of Manager Level total.&amp;nbsp; For instance, on our VP Manager Level I would like to see the % of Males vs. the % of Females within that group.&amp;nbsp; All stacks would total 100%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone please let me know what the best expression would be for what I am looking or how best to get this?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509319#M508738</guid>
      <dc:creator>brc111086</dc:creator>
      <dc:date>2018-11-19T20:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: 100% stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509339#M508739</link>
      <description>&lt;P&gt;If your calculation to get the head count looks something like this (with sum/count/etc.):&lt;/P&gt;&lt;P&gt;count(FieldName)&lt;/P&gt;&lt;P&gt;Then you would get the percentage like this:&lt;/P&gt;&lt;P&gt;count(FieldName)/count(total FieldName)&lt;/P&gt;&lt;P&gt;Then you'll need to add your other fields into &amp;lt;&amp;gt; in order to calculate the percentage for each bar instead of as a total:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count(FieldName)/count(total &amp;lt;ManagerLevel, Gender&amp;gt; FieldName)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509339#M508739</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2018-11-19T20:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: 100% stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509354#M508740</link>
      <description>&lt;P&gt;Nicole-&lt;/P&gt;&lt;P&gt;Thanks for the response back.&amp;nbsp; I tried the formula you recommended, but it did not seem to work.&lt;/P&gt;&lt;P&gt;My Manager Levels are as follows:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Other Personnel&lt;/LI&gt;&lt;LI&gt;Non-Management&lt;/LI&gt;&lt;LI&gt;Assistant Manager&lt;/LI&gt;&lt;LI&gt;Supervisor&lt;/LI&gt;&lt;LI&gt;Manager&lt;/LI&gt;&lt;LI&gt;Director&lt;/LI&gt;&lt;LI&gt;VP's&lt;/LI&gt;&lt;LI&gt;Dept Chair/SrOffDirectReport&lt;/LI&gt;&lt;LI&gt;Senior Officer&lt;/LI&gt;&lt;LI&gt;President&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Gender is just&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;M&lt;/LI&gt;&lt;LI&gt;F&lt;/LI&gt;&lt;LI&gt;U&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Should I only be using this&amp;nbsp;expression you provided:&amp;nbsp;&lt;SPAN&gt;count(FieldName)/count(total &amp;lt;ManagerLevel, Gender&amp;gt; FieldName)?&amp;nbsp; And do I enter every Manager Level separated&amp;nbsp;by commas.&amp;nbsp; I have only been working with Qlik for a few weeks and not too advanced on putting the expressions together so I appreciate your assistance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 21:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509354#M508740</guid>
      <dc:creator>brc111086</dc:creator>
      <dc:date>2018-11-19T21:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: 100% stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509463#M508741</link>
      <description>&lt;P&gt;My understanding is that you want to have on bar for each level, have the total be 100%, and have the bar be split by the percent of each gender for that specific level. Correct?&lt;BR /&gt;&lt;BR /&gt;If so then this is what you do.&lt;BR /&gt;My example uses fields named Level, and Gender. Change them to your field names.&lt;BR /&gt;&lt;BR /&gt;1. Create a bar chart.&lt;BR /&gt;2. Select Level for the first dimension.&lt;BR /&gt;3. Select Gender for the second dimension.&lt;BR /&gt;4. Use this formula for the measure:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Count(Gender)/Count(total &amp;lt;Level&amp;gt; Level)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Note: if you have an ID field (I called mine ID) for each person then you can also use:&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Count(Gender)/Count(total &amp;lt;Level&amp;gt; ID)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Either formula will work.&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;5. Change the format pattern for the measure. Turn off auto and use 0.0%&lt;BR /&gt;6. Change the label for the measure to "Gender %".&lt;BR /&gt;7. In the Appearance section, change the presentation to "Stacked".&lt;BR /&gt;8. Add your title.&lt;BR /&gt;&lt;BR /&gt;Your chart should look something like the example attachment. I only used M and F for Gender, so mine will look a little different.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 06:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509463#M508741</guid>
      <dc:creator>lblumenfeld</dc:creator>
      <dc:date>2018-11-20T06:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: 100% stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509748#M508742</link>
      <description>&lt;P&gt;The last suggestion worked perfectly!&amp;nbsp; Thanks so much!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 13:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509748#M508742</guid>
      <dc:creator>brc111086</dc:creator>
      <dc:date>2018-11-20T13:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: 100% stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509887#M508743</link>
      <description>&lt;P&gt;Excellent! Please mark the example as correct, so that others will see it when they search. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 15:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/1509887#M508743</guid>
      <dc:creator>lblumenfeld</dc:creator>
      <dc:date>2018-11-20T15:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: 100% stacked bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/2132359#M1224766</link>
      <description>&lt;P&gt;Will this formula work with Avg ? Because in my case the stack in total is not giving 100% in total&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 07:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-stacked-bar-chart/m-p/2132359#M1224766</guid>
      <dc:creator>aarav021</dc:creator>
      <dc:date>2023-10-27T07:14:51Z</dc:date>
    </item>
  </channel>
</rss>

