<?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: Stacked Bar - 100% Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343935#M838945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you sooo much! This helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 May 2017 12:16:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-05-15T12:16:51Z</dc:date>
    <item>
      <title>Stacked Bar - 100% Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343929#M838934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my data. I want to insert a Stacked Bar chart which Displays&amp;nbsp; "Learning Plan" and "No Learning Plan" as percentages.&lt;/P&gt;&lt;P&gt;My Dimension is LOB.&lt;/P&gt;&lt;P&gt;I am struggling with the expression, could you please help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;LOB&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Population&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Learning Plan&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;No Learning Plan&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;LOB1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;LOB2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;LOB3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;LOB4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343929#M838934</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar - 100% Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343930#M838936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use LOB as dimension, and two expressions:&lt;/P&gt;&lt;P&gt;=Only([Learning Plan]) / Only([Population])&lt;/P&gt;&lt;P&gt;=Only([No Learning Plan]) / Only([Population])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set style of the bar chart to stacked. Select 'Show in percent' on number tab for both expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 08:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343930#M838936</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-15T08:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar - 100% Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343931#M838938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;Thanks for your reply. "Population"&amp;nbsp; and " No Learning Plan" are&amp;nbsp; calculated columns.&lt;/P&gt;&lt;P&gt;Population = Count(StandardID),&lt;/P&gt;&lt;P&gt;No Learning&lt;SPAN style="font-size: 10pt;"&gt; Plan = &lt;SPAN style="color: #000000;"&gt;[Population]-&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;[Learning Plans] &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when I use the above formula.I get an error message! Any other workaround this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 09:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343931#M838938</guid>
      <dc:creator />
      <dc:date>2017-05-15T09:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar - 100% Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343932#M838940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just replace Only(FIELDNAME) with your expressions.&lt;/P&gt;&lt;P&gt;Where you reference another expression and you don't want to use it in your chart, expand the Expression reference to the full expression text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how you calculate Learning Plans, but No Learning plan would look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(StandardID) - &lt;EM&gt;WhateverAggregationUsedForLearningPlan&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 09:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343932#M838940</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-15T09:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar - 100% Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343933#M838942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expression for LearningPlan = sum(LearningPlan).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As advised above, I get&amp;nbsp; " Error in Expression : ')' expected"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Learning Plan&lt;/STRONG&gt; =&amp;nbsp; only&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 8pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Learning Plan]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 8pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Standard Id]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;No Learning Plan&lt;/STRONG&gt; = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 8pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 8pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Standard Id]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Learning Plan]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Not sure where I am going wrong! Kindly assist.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 11:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343933#M838942</guid>
      <dc:creator />
      <dc:date>2017-05-15T11:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar - 100% Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343934#M838944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only() is an aggregation function and shouldn't be used around another aggregation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Learning Plan %:&lt;/P&gt;&lt;P&gt;=Sum([Learning Plan]) / Count([Standard Id])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No Learning Plan %:&lt;/P&gt;&lt;P&gt;= 1 - Sum([Learning Plan]) / Count([Standard Id])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use bar chart style 'stacked' and format as percent on number tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 11:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343934#M838944</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-15T11:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar - 100% Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343935#M838945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you sooo much! This helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 12:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stacked-Bar-100-Calculation/m-p/1343935#M838945</guid>
      <dc:creator />
      <dc:date>2017-05-15T12:16:51Z</dc:date>
    </item>
  </channel>
</rss>

