<?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 100% Stacked bar chart issue (stack showing anything but 100% ) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-issue-stack-showing-anything-but-100/m-p/1598516#M44249</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to create a 100% stacked bar chart with the below scenario:&lt;/P&gt;&lt;P&gt;We are trying to determine the % of each Main Reason for people leaving (6 possible response categories) / sum of all main reasons. We have used 2 group dimensions:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Includes: age, band, gender...&lt;/P&gt;&lt;P&gt;2. Includes: Main reason and sub reason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each leaver can select multiple reasons for leaving.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have tried the following measure:&lt;/P&gt;&lt;P&gt;Measure 1=&amp;nbsp;Sum(distinct {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}&amp;gt;} Leavers_Count)&lt;/P&gt;&lt;P&gt;Measure 2=count(distinct {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}&amp;gt;} EmployeeID)&lt;/P&gt;&lt;P&gt;Measure 3 =Sum(distinct {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}&amp;gt;} EmployeeID)&lt;/P&gt;&lt;P&gt;Measure 4=&amp;nbsp;Sum( {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}&amp;gt;} Leavers_Count)&lt;BR /&gt;/Sum( Total &amp;lt;[Main Reason]&amp;gt; {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}&amp;gt;} Leavers_Count)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached screenshots of the graph for each of the 4 measures (measure 1 and 2 show the same). Unfortunately, I am not able to attached the app or a sample app due to security reasons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results of the 4th measure makes the most sense but it adds up to 300%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions or tips?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:31:51 GMT</pubDate>
    <dc:creator>alexandrajaber</dc:creator>
    <dc:date>2024-11-16T20:31:51Z</dc:date>
    <item>
      <title>100% Stacked bar chart issue (stack showing anything but 100% )</title>
      <link>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-issue-stack-showing-anything-but-100/m-p/1598516#M44249</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to create a 100% stacked bar chart with the below scenario:&lt;/P&gt;&lt;P&gt;We are trying to determine the % of each Main Reason for people leaving (6 possible response categories) / sum of all main reasons. We have used 2 group dimensions:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Includes: age, band, gender...&lt;/P&gt;&lt;P&gt;2. Includes: Main reason and sub reason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each leaver can select multiple reasons for leaving.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have tried the following measure:&lt;/P&gt;&lt;P&gt;Measure 1=&amp;nbsp;Sum(distinct {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}&amp;gt;} Leavers_Count)&lt;/P&gt;&lt;P&gt;Measure 2=count(distinct {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}&amp;gt;} EmployeeID)&lt;/P&gt;&lt;P&gt;Measure 3 =Sum(distinct {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}&amp;gt;} EmployeeID)&lt;/P&gt;&lt;P&gt;Measure 4=&amp;nbsp;Sum( {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}&amp;gt;} Leavers_Count)&lt;BR /&gt;/Sum( Total &amp;lt;[Main Reason]&amp;gt; {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}&amp;gt;} Leavers_Count)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached screenshots of the graph for each of the 4 measures (measure 1 and 2 show the same). Unfortunately, I am not able to attached the app or a sample app due to security reasons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results of the 4th measure makes the most sense but it adds up to 300%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions or tips?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-issue-stack-showing-anything-but-100/m-p/1598516#M44249</guid>
      <dc:creator>alexandrajaber</dc:creator>
      <dc:date>2024-11-16T20:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: 100% Stacked bar chart issue (stack showing anything but 100% )</title>
      <link>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-issue-stack-showing-anything-but-100/m-p/1598731#M44260</link>
      <description>&lt;P&gt;Measure 4 is close&amp;nbsp;enough. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your chart have 2 dimensions, but 100% u need by each.&lt;/P&gt;&lt;P&gt;Try Count( [&lt;SPAN&gt;reason] ) / Count( TOTAL &amp;lt;gender&amp;gt;&amp;nbsp;[reason] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It will return&amp;nbsp;Count( [reason] ) for each reason type (six of them) and gender. And Total will return total values for each gender.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-issue-stack-showing-anything-but-100/m-p/1598731#M44260</guid>
      <dc:creator>Simon_Astakhov</dc:creator>
      <dc:date>2019-07-03T15:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: 100% Stacked bar chart issue (stack showing anything but 100% )</title>
      <link>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-issue-stack-showing-anything-but-100/m-p/1599158#M44295</link>
      <description>&lt;P&gt;This kind of works whereby it gave me 100%, the issue now is that for each main reason we can have several sub reasons so we need to be able to count(distinct(EmployeeID)) somewhere because if 1 main reason has multiple sub-reasons, the % shown will not be accurate and the only way to deduplicate is if we count it based on EmployeeID.&lt;/P&gt;&lt;P&gt;How do you recommend we introduce that to the following expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count( {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}, [Exit Interview Eligible]={'True'}&amp;gt;} [Main Reason] ) /&lt;BR /&gt;Count( TOTAL &amp;lt;Gender, [Global Band (E)],Tenure, [Age Grouping], Country, [Company Code],Discover,Columbus,Nationality&amp;gt; {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}, [Exit Interview Eligible]={'True'}&amp;gt;}[Main Reason] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 15:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-issue-stack-showing-anything-but-100/m-p/1599158#M44295</guid>
      <dc:creator>alexandrajaber</dc:creator>
      <dc:date>2019-07-04T15:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: 100% Stacked bar chart issue (stack showing anything but 100% )</title>
      <link>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-issue-stack-showing-anything-but-100/m-p/1599406#M44316</link>
      <description>&lt;P&gt;I tried the following expression but the distinct part is bringing the stacked bar to where it doesn't show 100% anymore... when distinct is removed, the stack goes back to 100% and the numbers are pretty close to what they should be but not exact..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count(DISTINCT {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}, [Exit Interview Eligible]={'True'}&amp;gt;} [EmployeeID] ) /&lt;BR /&gt;Count ( &lt;STRONG&gt;distinct&lt;/STRONG&gt; TOTAL &amp;lt;Gender, [Global Band (E)],Tenure, [Age Grouping], Country, [Company Code],Discover,Columbus,Nationality&amp;gt; {&amp;lt;Period=, DateNum = {"&amp;gt;=$(=$(v_CM_Start))&amp;lt;=$(=$(v_MaxDate))"}, DataType = {'Leavers'}, [Exit Interview Eligible]={'True'}&amp;gt;} [EmployeeID] )&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 11:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-issue-stack-showing-anything-but-100/m-p/1599406#M44316</guid>
      <dc:creator>alexandrajaber</dc:creator>
      <dc:date>2019-07-05T11:41:42Z</dc:date>
    </item>
  </channel>
</rss>

