<?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: Percentages not correct when using subfields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524366#M481846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thaks for submitting, but in your example (I'll use the colour green again)&lt;/P&gt;&lt;P&gt;I want it to show the percentage of respondents that like green, not the percentage of the total number of favourite colours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ie, the bar for green should show 6/11 = 55%&lt;/P&gt;&lt;P&gt;Is there any way around this? I would just hard-code to have =Sum(Count)/11... but need it to keep updating&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 08:18:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-16T08:18:20Z</dc:date>
    <item>
      <title>Percentages not correct when using subfields</title>
      <link>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524361#M481841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to solve this for a while but with no luck.&lt;/P&gt;&lt;P&gt;I have made an example (attached) of using a subfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example - each 'ID' is a person, who has been able to select up to 3 favurite colours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the percentages on the graph work out the % using total entries in the subfield DIVIDED BY the current selection.&lt;/P&gt;&lt;P&gt;I.e.If you mose over Green you'll see it says 22% and we can see that of our 11 people, 6 have selected Green, so it should be over 50%&lt;/P&gt;&lt;P&gt;Is there any way that I can make Qlikview show the percentage of People who selected that Colour?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be really appreciated,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Sep 2013 19:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524361#M481841</guid>
      <dc:creator />
      <dc:date>2013-09-15T19:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages not correct when using subfields</title>
      <link>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524362#M481842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to mark "Relative" in the expressions tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to mark and see what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 01:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524362#M481842</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2013-09-16T01:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages not correct when using subfields</title>
      <link>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524363#M481843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like attached? PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 05:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524363#M481843</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-16T05:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages not correct when using subfields</title>
      <link>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524364#M481844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sadly not that easy. Qlikview automatically splits this data out into one line per entry on the subfield - In the example I've hit relative and it'll give yu the percentage of the total entries for that subfield, not the number of people. Any othe rsuggestions at all?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 08:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524364#M481844</guid>
      <dc:creator />
      <dc:date>2013-09-16T08:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages not correct when using subfields</title>
      <link>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524365#M481845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try sum(Count)/count({&amp;lt;Count={'*'}&amp;gt;}total distinct ID). See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 08:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524365#M481845</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-16T08:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages not correct when using subfields</title>
      <link>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524366#M481846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thaks for submitting, but in your example (I'll use the colour green again)&lt;/P&gt;&lt;P&gt;I want it to show the percentage of respondents that like green, not the percentage of the total number of favourite colours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ie, the bar for green should show 6/11 = 55%&lt;/P&gt;&lt;P&gt;Is there any way around this? I would just hard-code to have =Sum(Count)/11... but need it to keep updating&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 08:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524366#M481846</guid>
      <dc:creator />
      <dc:date>2013-09-16T08:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages not correct when using subfields</title>
      <link>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524367#M481847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;What I think you should be trying is the TOTAL keyword where you also can defined which field you should use for the Total. Attaching file&lt;/P&gt;&lt;P&gt;Brgds, Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 08:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524367#M481847</guid>
      <dc:creator>johanlindell</dc:creator>
      <dc:date>2013-09-16T08:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Percentages not correct when using subfields</title>
      <link>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524368#M481848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway you have to keep track of the &lt;STRONG&gt;repeating colors&lt;/STRONG&gt;(here only one 'Green' as you told) and add that to count which is a denominator. Here, i have simply added 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I totally missed your field &lt;STRONG&gt;count &lt;/STRONG&gt;behavior, you can simply try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Count&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: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 08:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524368#M481848</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-16T08:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Percentages not correct when using subfields</title>
      <link>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524369#M481849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all these, though I;ve just noticed another problem whilst working on a different part of my model which can be expalined here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I go onto any of the examples above and select a particular country then the percentages stop working (they all go to 100% rather than displaying the percentage of the current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I can have a 'percentage of current selection'. I have this issue a lot throughout my data so a solution would be really useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 12:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524369#M481849</guid>
      <dc:creator />
      <dc:date>2013-09-24T12:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Percentages not correct when using subfields</title>
      <link>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524370#M481850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should consider moving the count to the colors-field. It alls boils down to want you want to show. See attached. Or is it something else you are after?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 17:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentages-not-correct-when-using-subfields/m-p/524370#M481850</guid>
      <dc:creator>johanlindell</dc:creator>
      <dc:date>2013-09-24T17:03:05Z</dc:date>
    </item>
  </channel>
</rss>

