<?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 Percentage Expression Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Percentage-Expression-Problem/m-p/736914#M1082676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&amp;nbsp; I'm trying (and failing) to show the following in a single chart.&amp;nbsp; I've heavily simplified the data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 100%; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Relevant?&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&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;The 'Category' column is just a list of text, the 'Relevant?' column either has something in it or it doesn't.&amp;nbsp; I need to see the percentage of what is relevant, by category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently using for the expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;SPAN style="color: #800000;"&gt;[Relevant?]&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Total&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Category]&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When one category is selected from the field, the chart correctly shows (for A, for example) 75% (count of 3 As with a Y in 'Relevant?' divided by a total count of 4 As), so this works.&amp;nbsp; The problem arises when both (for example) A and B are selected and shown on the same chart.&amp;nbsp; What the expression does is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For A: 3 divided by 7&amp;nbsp; (3 As with a Y divided by the total number of As &lt;EM&gt;plus&lt;/EM&gt; Bs (I think) which gives 43%, despite it showing 75% when just A is selected)&lt;/P&gt;&lt;P&gt;For B: 1 divided by 7 (1 B with a Y divided by the total number of Bs plus As which gives 14%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand why it's doing this, it's showing the categories seperately on the chart but then dividing it by the total of the categories slected, for both categories.&amp;nbsp; I've tried a few different expressions but I can't seem to find one that will give me, on the same chart &lt;EM&gt;3 divided by 4&lt;/EM&gt; for A and &lt;EM&gt;1 divided by 3&lt;/EM&gt; for B ie divided by the total count for each category..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm really new to this (sorry!), so give me a nudge if I've not been clear enough.&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, 24 Jun 2014 15:42:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-24T15:42:27Z</dc:date>
    <item>
      <title>Percentage Expression Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-Expression-Problem/m-p/736914#M1082676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&amp;nbsp; I'm trying (and failing) to show the following in a single chart.&amp;nbsp; I've heavily simplified the data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 100%; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Relevant?&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&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;The 'Category' column is just a list of text, the 'Relevant?' column either has something in it or it doesn't.&amp;nbsp; I need to see the percentage of what is relevant, by category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently using for the expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;SPAN style="color: #800000;"&gt;[Relevant?]&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Total&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Category]&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When one category is selected from the field, the chart correctly shows (for A, for example) 75% (count of 3 As with a Y in 'Relevant?' divided by a total count of 4 As), so this works.&amp;nbsp; The problem arises when both (for example) A and B are selected and shown on the same chart.&amp;nbsp; What the expression does is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For A: 3 divided by 7&amp;nbsp; (3 As with a Y divided by the total number of As &lt;EM&gt;plus&lt;/EM&gt; Bs (I think) which gives 43%, despite it showing 75% when just A is selected)&lt;/P&gt;&lt;P&gt;For B: 1 divided by 7 (1 B with a Y divided by the total number of Bs plus As which gives 14%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand why it's doing this, it's showing the categories seperately on the chart but then dividing it by the total of the categories slected, for both categories.&amp;nbsp; I've tried a few different expressions but I can't seem to find one that will give me, on the same chart &lt;EM&gt;3 divided by 4&lt;/EM&gt; for A and &lt;EM&gt;1 divided by 3&lt;/EM&gt; for B ie divided by the total count for each category..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm really new to this (sorry!), so give me a nudge if I've not been clear enough.&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, 24 Jun 2014 15:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-Expression-Problem/m-p/736914#M1082676</guid>
      <dc:creator />
      <dc:date>2014-06-24T15:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage Expression Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-Expression-Problem/m-p/736915#M1082677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Try: count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Relevant?]&lt;/SPAN&gt;)/&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Total&lt;/SPAN&gt; &amp;lt;Category&amp;gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Category]&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 15:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-Expression-Problem/m-p/736915#M1082677</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-24T15:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage Expression Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-Expression-Problem/m-p/736916#M1082678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amazing - Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 08:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-Expression-Problem/m-p/736916#M1082678</guid>
      <dc:creator />
      <dc:date>2014-06-25T08:54:32Z</dc:date>
    </item>
  </channel>
</rss>

