<?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 (not adding to 100%). in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-not-adding-to-100/m-p/1919763#M75697</link>
    <description>&lt;P&gt;Hi, once again I am troubling the experts!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to Or's help I have my OTIF measures. However trying to get the stacked bar charts to total 100% is proving to be another challenge.&lt;/P&gt;
&lt;P&gt;I have read several questions &amp;amp; answers and reviewed 'Total' but still seem to be missing something!&lt;/P&gt;
&lt;P&gt;My dimension is a date.&lt;/P&gt;
&lt;P&gt;= Date ([ERDAT.autoCalendar.YearMonth], 'MMM.YY')&lt;/P&gt;
&lt;P&gt;I have three separate measures for my OTIFS.&lt;/P&gt;
&lt;P&gt;Early:&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;COUNT ( (IF ([WADAT_IST] &amp;lt; [WADAT],VBELN ))) / COUNT (VBELN )&lt;/P&gt;
&lt;P&gt;On Time:&lt;/P&gt;
&lt;P&gt;COUNT&amp;nbsp;( (IF ([WADAT_IST] = [WADAT],VBELN ))) / COUNT (VBELN )&lt;/P&gt;
&lt;P&gt;Late:&lt;/P&gt;
&lt;P&gt;COUNT ( (IF ([WADAT_IST] &amp;gt; [WADAT],VBELN ))) / COUNT (VBELN )&lt;/P&gt;
&lt;P&gt;Results in &amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daryn_0-1650359005219.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77360i48C7319CA94087A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daryn_0-1650359005219.png" alt="Daryn_0-1650359005219.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried the following variation with each of my measures (just changing the &amp;lt;,=,&amp;gt; per measure)&lt;/P&gt;
&lt;P&gt;count (IF ( [WADAT_IST] = [WADAT], VBELN )) / COUNT ( TOTAL &amp;lt;[ERDAT.autoCalendar.YearMonth]&amp;gt;&amp;nbsp; (VBELN))&lt;/P&gt;
&lt;P&gt;Results in &amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daryn_1-1650359321191.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77369i0BB5D22D00CCB07E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daryn_1-1650359321191.png" alt="Daryn_1-1650359321191.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you all in advance for any help, suggestions or a solution!&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daryn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 09:13:14 GMT</pubDate>
    <dc:creator>Daryn</dc:creator>
    <dc:date>2022-04-19T09:13:14Z</dc:date>
    <item>
      <title>100% Stacked bar chart (not adding to 100%).</title>
      <link>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-not-adding-to-100/m-p/1919763#M75697</link>
      <description>&lt;P&gt;Hi, once again I am troubling the experts!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to Or's help I have my OTIF measures. However trying to get the stacked bar charts to total 100% is proving to be another challenge.&lt;/P&gt;
&lt;P&gt;I have read several questions &amp;amp; answers and reviewed 'Total' but still seem to be missing something!&lt;/P&gt;
&lt;P&gt;My dimension is a date.&lt;/P&gt;
&lt;P&gt;= Date ([ERDAT.autoCalendar.YearMonth], 'MMM.YY')&lt;/P&gt;
&lt;P&gt;I have three separate measures for my OTIFS.&lt;/P&gt;
&lt;P&gt;Early:&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;COUNT ( (IF ([WADAT_IST] &amp;lt; [WADAT],VBELN ))) / COUNT (VBELN )&lt;/P&gt;
&lt;P&gt;On Time:&lt;/P&gt;
&lt;P&gt;COUNT&amp;nbsp;( (IF ([WADAT_IST] = [WADAT],VBELN ))) / COUNT (VBELN )&lt;/P&gt;
&lt;P&gt;Late:&lt;/P&gt;
&lt;P&gt;COUNT ( (IF ([WADAT_IST] &amp;gt; [WADAT],VBELN ))) / COUNT (VBELN )&lt;/P&gt;
&lt;P&gt;Results in &amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daryn_0-1650359005219.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77360i48C7319CA94087A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daryn_0-1650359005219.png" alt="Daryn_0-1650359005219.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried the following variation with each of my measures (just changing the &amp;lt;,=,&amp;gt; per measure)&lt;/P&gt;
&lt;P&gt;count (IF ( [WADAT_IST] = [WADAT], VBELN )) / COUNT ( TOTAL &amp;lt;[ERDAT.autoCalendar.YearMonth]&amp;gt;&amp;nbsp; (VBELN))&lt;/P&gt;
&lt;P&gt;Results in &amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daryn_1-1650359321191.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77369i0BB5D22D00CCB07E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daryn_1-1650359321191.png" alt="Daryn_1-1650359321191.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you all in advance for any help, suggestions or a solution!&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daryn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 09:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-not-adding-to-100/m-p/1919763#M75697</guid>
      <dc:creator>Daryn</dc:creator>
      <dc:date>2022-04-19T09:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: 100% Stacked bar chart (not adding to 100%).</title>
      <link>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-not-adding-to-100/m-p/1919792#M75700</link>
      <description>&lt;P&gt;It could be that you are missing&amp;nbsp;&lt;SPAN&gt;WADAT or WADAT_IST for some of your data points. You need to investigate your data.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I suggest you create a straight table with a couple of relevant dimensions (Such as year month) and the following measures to start your investegation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Early&lt;/STRONG&gt;:&amp;nbsp; &amp;nbsp;COUNT ( (IF ([WADAT_IST] &amp;lt; [WADAT],VBELN )))&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;On Time&lt;/STRONG&gt;: COUNT&amp;nbsp;( (IF ([WADAT_IST] = [WADAT],VBELN )))&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Late&lt;/STRONG&gt;: COUNT ( (IF ([WADAT_IST] &amp;gt; [WADAT],VBELN )))&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COUNT (VBELN )&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 19 Apr 2022 09:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-not-adding-to-100/m-p/1919792#M75700</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-04-19T09:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: 100% Stacked bar chart (not adding to 100%).</title>
      <link>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-not-adding-to-100/m-p/1919840#M75703</link>
      <description>&lt;P&gt;Thank you Vegar for taking the time to help and respond. You are correct (of course), there do appear to be some blank&amp;nbsp; WADAT_IST entries!&amp;nbsp; I will have to see if they can be resolved. Appreciated.&lt;/P&gt;
&lt;P&gt;Regards, Daryn.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. For now I got around that (using nullcount)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daryn_0-1650365447461.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77392i66EADDADE9887864/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daryn_0-1650365447461.png" alt="Daryn_0-1650365447461.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 10:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/100-Stacked-bar-chart-not-adding-to-100/m-p/1919840#M75703</guid>
      <dc:creator>Daryn</dc:creator>
      <dc:date>2022-04-19T10:51:05Z</dc:date>
    </item>
  </channel>
</rss>

