<?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: Counting relative values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149612#M913990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, Sunny, I was replying to your post, but adressing more the OP, or maybe talking to myself...&lt;/P&gt;&lt;P&gt;Your solution is a correct solution to the requirement, I believe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2016 20:38:48 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-25T20:38:48Z</dc:date>
    <item>
      <title>Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149605#M913983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working in a chart where i need to count the porcentage of people of a field that measure the avarage of knowlodge of the employees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total of people are 202, and they are divided in 3 Departments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Department A: 25&lt;/P&gt;&lt;P&gt;Department B: 105&lt;/P&gt;&lt;P&gt;Department C: 72&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is the expression of the bar chart:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="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;[Avg of Knowledge]&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;/P&gt;&lt;P&gt;And the chart displays the correct value when no filters are applied:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sem título.png" class="jive-image image-1" src="/legacyfs/online/125794_Sem título.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user required to create a filter where it is possible to view each value of the volume (in percentage), so i have created the list below, using the field [Avg of Knowledge]:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/125804_Capturar.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;So, for instance, the user selected all values under 80% to see how many people (in percentage) are under 80%:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/125805_Capturar.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;After cheking my database, I have the following situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The department A has 25 employees, and 25 are under 80%, so the chart should display 100%;&lt;/P&gt;&lt;P&gt;- The department B has 105 employess, and 98 are under 80%, so the chart should display 93%;&lt;/P&gt;&lt;P&gt;- The department C has 72 employees, and 70 are under 80%, so the chart should display 97%;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the chart did not displayed to correct values from each department, as you can see below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sem título2.png" class="image-4 jive-image" src="/legacyfs/online/125806_Sem título2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt; I am setting the Relative option on this chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone could help to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&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/Counting-relative-values/m-p/1149605#M913983</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149606#M913984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try disabling the relative option and calculate your percentage like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count([Avg of knowlegde]) / Count({1} [Avg of knowledge])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 19:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149606#M913984</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-25T19:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149607#M913985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution worked, but when i clean the filters, the 3 departments display 100%:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sem título.png" class="jive-image image-1" src="/legacyfs/online/125807_Sem título.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 20:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149607#M913985</guid>
      <dc:creator />
      <dc:date>2016-05-25T20:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149608#M913986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clearing&amp;nbsp; a selection in a list box, so that all values are shown white, is equivalent to all values possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence in this scenario, the calculation is equivalent to having all list box items selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count of all records divided by the count of all records equals 100%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you want to see instead? 0%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(GetSelectedCount([Avg of knowlegde])&amp;gt;0,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Count([Avg of knowlegde]) / Count({1} [Avg of knowledge]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;0)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 20:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149608#M913986</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-25T20:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149609#M913987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=If(GetSelectedCount([Avg of knowlegde]) &amp;gt; 0,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; background-color: #f2f2f2;"&gt;Count([Avg of knowlegde]) / Count({1} [Avg of knowledge]), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;Count([Avg of knowlegde]) / Count(TOTAL [Avg of knowledge])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; background-color: #f2f2f2;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 20:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149609#M913987</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-25T20:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149610#M913988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, that should display the chart as shown in the OP (which I already forgot after my first reply).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to me, it's kind of confusing that the same chart shows different measures depending on selection (personal opinion, you can do what you want).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 20:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149610#M913988</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-25T20:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149611#M913989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree, I wouldn't want to see a chart which shows something with selection and something else without selection. But I thought that he might be looking for getting the original chart when nothing is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 20:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149611#M913989</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-25T20:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149612#M913990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, Sunny, I was replying to your post, but adressing more the OP, or maybe talking to myself...&lt;/P&gt;&lt;P&gt;Your solution is a correct solution to the requirement, I believe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 20:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149612#M913990</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-25T20:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149613#M913991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No apologizes needed Stefan. We still don't know if this is what is required or not. But my comment was to agree with what you mentioned above &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. I don't see the logic behind what I proposed, but proposed it anyway &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 20:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149613#M913991</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-25T20:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149614#M913992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, thanks for your answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clearing the filters, i was expecting no selection from any filter. so the calculation it was suposed to be equivalent to having any list box items selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the expected result was the count of all possible values from each department:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126363_Capturar.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;When i used the expression suggested by Sunny, the chart displayed the correct values when the filter is cleared, but after applying the filter, the calculation was incorrect, it returned the following result:&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=If(GetSelectedCount([Avg of knowlegde]) &amp;gt; 0,&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-size: 12px; font-style: inherit; font-weight: inherit; background-color: #f2f2f2;"&gt;Count([Avg of knowlegde]) / Count({1} [Avg of knowledge]), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;Count([Avg of knowlegde]) / Count(TOTAL [Avg of knowledge])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-style: inherit; font-weight: inherit; background-color: #f2f2f2;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/126364_Capturar.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 14:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149614#M913992</guid>
      <dc:creator />
      <dc:date>2016-05-31T14:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149615#M913993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;Count({1}[Avg of knowlegde]) / Count({1}TOTAL [Avg of knowledge])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 14:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149615#M913993</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-31T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149616#M913994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wiht this expression the chart seems frozen, the results didn´t change when i try to filter some value from the list box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 15:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149616#M913994</guid>
      <dc:creator />
      <dc:date>2016-05-31T15:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149617#M913995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rodrigo, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({$}[Avg of knowlegde]) / Count({1}TOTAL [Avg of knowledge])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 15:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149617#M913995</guid>
      <dc:creator>clondono</dc:creator>
      <dc:date>2016-05-31T15:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149618#M913996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/rodrigosanchez"&gt;Rodrigo&lt;/A&gt;‌ you replied to Stefan that this worked when you make a selection&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Count([Avg of knowlegde]) / Count({1} [Avg of knowledge])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my solution worked when no selection is made?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=If(GetSelectedCount([Avg of knowlegde]) &amp;gt; 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count([Avg of knowlegde]) / Count({1} [Avg of knowledge]), Count([Avg of knowlegde]) / Count(TOTAL [Avg of knowledge]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But all I did was to add the condition that if nothing is selected show&lt;BR /&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count([Avg of knowlegde]) / Count(TOTAL [Avg of knowledge])&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Else if something is selected show what Stefan provided&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Count([Avg of knowlegde]) / Count({1} [Avg of knowledge])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to verify if what Stefan provided initially worked or not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 15:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149618#M913996</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-31T15:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149619#M913997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t know why, but the condition proposed don´t display the same results as the results when i use them isolated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression proposed by Stefan (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Count([Avg of knowlegde]) / Count({1} [Avg of knowledge])&lt;/STRONG&gt;&lt;/SPAN&gt;) worked when i make a selection (in this case i selected all the values that are under 80%):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126386_Capturar.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i clear all selections, the chart displays all bars as 100%, because as explained by swuehl, clearing a selection in a list box the calculation is equivalent to having all list box items selected.&lt;/P&gt;&lt;P&gt;When i use you solution worked when no selection is made, but when i select the same values under 80%, i have the following result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/126387_Capturar.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, the chart didn´t display the values 100%, 93% and 97% as displayed in the solution proposed by Stefan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 17:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149619#M913997</guid>
      <dc:creator />
      <dc:date>2016-05-31T17:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149620#M913998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be possible for you to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 17:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149620#M913998</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-31T17:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149621#M913999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately your solution worked only when no selections are made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After making the same selection under 80%, i had the following results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126388_Capturar.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 17:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149621#M913999</guid>
      <dc:creator />
      <dc:date>2016-05-31T17:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149622#M914000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow attached the sample!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 18:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149622#M914000</guid>
      <dc:creator />
      <dc:date>2016-05-31T18:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149623#M914001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the attached:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without Selection&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126390_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Selection:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/126391_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(GetSelectedCount(Flag) &amp;gt; 0, Count([Avg of Knowledge]) / Count({1}[Avg of Knowledge]), Count([Avg of Knowledge]) / Count(TOTAL [Avg of Knowledge]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 18:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149623#M914001</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-31T18:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Counting relative values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149624#M914002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My mistake: I was not adding the field "Flag" in the condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(GetSelectedCount(Flag) &amp;gt; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 18:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-relative-values/m-p/1149624#M914002</guid>
      <dc:creator />
      <dc:date>2016-05-31T18:59:40Z</dc:date>
    </item>
  </channel>
</rss>

