<?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 Representing the percentage value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149470#M590077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this a try. I created a variable to store the number of participants (vParticipants). I did it manually in the load script. It can be done in multiple ways, but from your dataset, there is no way to infer that 149 participated. All we know is that at least 126 did (the number that answered 1).&lt;/P&gt;&lt;P&gt;Once you have the number of participants defined, you take the number of clicks divided by the number of participants and you have your percentage.&lt;/P&gt;&lt;P&gt;I've attached an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2009 02:03:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-16T02:03:51Z</dc:date>
    <item>
      <title>Representing the percentage value</title>
      <link>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149466#M590073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;How would I go about creating a chart to represent the percentage value instead of a numeric value. My data is a little different in the respect that I'm counting the presence in the data rather than its value (which is 'yes').&lt;BR /&gt;&lt;BR /&gt;My data is below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 246pt; border-collapse: collapse;" width="328"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 123pt; mso-width-source: userset; mso-width-alt: 5997; mso-outline-parent: collapsed;" width="164" /&gt;&lt;COL style="width: 123pt; mso-width-source: userset; mso-width-alt: 5997; mso-outline-parent: collapsed;" width="164" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; width: 123pt; height: 12.75pt; border: #d4d0c8;" width="164"&gt;Option 1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="background-color: white; width: 123pt; border: #d4d0c8;" width="164"&gt;126&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; height: 12.75pt; border: #d4d0c8;"&gt;Option 2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: white; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8"&gt;67&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; height: 12.75pt; border: #d4d0c8;"&gt;Option 3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: white; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; height: 12.75pt; border: #d4d0c8;"&gt;Option 4&lt;/TD&gt;&lt;TD align="right" class="xl64" style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: white; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; height: 12.75pt; border: #d4d0c8;"&gt;Option 5&lt;/TD&gt;&lt;TD align="right" class="xl64" style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: white; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; height: 12.75pt; border: #d4d0c8;"&gt;Option 6&lt;/TD&gt;&lt;TD align="right" class="xl64" style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: white; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; height: 12.75pt; border: #d4d0c8;"&gt;Option 7&lt;/TD&gt;&lt;TD align="right" class="xl64" style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: white; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; height: 12.75pt; border: #d4d0c8;"&gt;Option 8&lt;/TD&gt;&lt;TD align="right" class="xl64" style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: white; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; height: 12.75pt; border: #d4d0c8;"&gt;Option 9&lt;/TD&gt;&lt;TD align="right" class="xl64" style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: white; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; height: 12.75pt; border: #d4d0c8;"&gt;Option 10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: white; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; height: 12.75pt; border: #d4d0c8;"&gt;Option 11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: white; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; height: 12.75pt; border: #d4d0c8;"&gt;Option 12&lt;/TD&gt;&lt;TD align="right" class="xl64" style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: white; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: white; height: 12.75pt; border: #d4d0c8;"&gt;Option 13&lt;/TD&gt;&lt;TD align="right" class="xl64" style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: white; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;There were 149 distinct people answering the question and 267 boxes ticked in total - it was a multiple choice question and as many of the options could be ticked as wanted with at least one box having to be ticked.&lt;BR /&gt;&lt;BR /&gt;In a single bar chart I would like to represent each option's percentage value - 84.56% of people clicked Option 1 and 44.967 people clicked Option 2 - how do I put those values on a chart instead of the actual numbers.&lt;BR /&gt;&lt;BR /&gt;If I click 'relative' it shows 47% for Option 1 which is not really what I want to represent - 47% is 126/267*100 rather than 126/149*100.&lt;BR /&gt;&lt;BR /&gt;I can get the distinct count of how many people answered any question for the chart label but when I try to use this value for the definition =count( Distinct ID) the chart just gives me a value for 1 for each option.&lt;BR /&gt;&lt;BR /&gt;I'm sure there's an easy answer (I hope there is) but I'm not able to figure out what I need to do so any help is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 01:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149466#M590073</guid>
      <dc:creator />
      <dc:date>2009-07-16T01:20:37Z</dc:date>
    </item>
    <item>
      <title>Representing the percentage value</title>
      <link>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149467#M590074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose what I want to be able to do is to use the value of 149 (in this case) in the expression definition without explicity writing in 149 - what do I need to type that will give me 149. If I can get that I can then change the number format to show in percentage quite happily.&lt;BR /&gt;&lt;BR /&gt;Thanks o)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 01:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149467#M590074</guid>
      <dc:creator />
      <dc:date>2009-07-16T01:25:48Z</dc:date>
    </item>
    <item>
      <title>Representing the percentage value</title>
      <link>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149468#M590075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Donut,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If possible, posting an example QVW will make it much easier to offer an opinion about how to solve this problem &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 01:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149468#M590075</guid>
      <dc:creator />
      <dc:date>2009-07-16T01:47:38Z</dc:date>
    </item>
    <item>
      <title>Representing the percentage value</title>
      <link>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149469#M590076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how to do that.&lt;BR /&gt;&lt;BR /&gt;In my expression I have =count( {BM_MyBookmark} Question ) which gives the numeric value.&lt;BR /&gt;&lt;BR /&gt;If I do =count( {BM_MyBookmark} Question ) / 149 I get the value I want.&lt;BR /&gt;&lt;BR /&gt;What can I replace 149 with to get the same value?&lt;BR /&gt;&lt;BR /&gt;In the Script Editor I tried the following which means I can use $IDCount in the label but doesn't seem so good in the expresion:&lt;BR /&gt;Set IDCount = count (distinct ID)&lt;BR /&gt;&lt;BR /&gt;The expression result keeps coming out to be 1!&lt;BR /&gt;&lt;BR /&gt;Even if I explicitly set IDCount = 149 it still doesn't work. What would work?&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 01:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149469#M590076</guid>
      <dc:creator />
      <dc:date>2009-07-16T01:59:23Z</dc:date>
    </item>
    <item>
      <title>Representing the percentage value</title>
      <link>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149470#M590077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this a try. I created a variable to store the number of participants (vParticipants). I did it manually in the load script. It can be done in multiple ways, but from your dataset, there is no way to infer that 149 participated. All we know is that at least 126 did (the number that answered 1).&lt;/P&gt;&lt;P&gt;Once you have the number of participants defined, you take the number of clicks divided by the number of participants and you have your percentage.&lt;/P&gt;&lt;P&gt;I've attached an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 02:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149470#M590077</guid>
      <dc:creator />
      <dc:date>2009-07-16T02:03:51Z</dc:date>
    </item>
    <item>
      <title>Representing the percentage value</title>
      <link>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149471#M590078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not able to open your example as I'm using the Personal Edition and it gives me a warning about recovering the file.&lt;BR /&gt;&lt;BR /&gt;The data I gave doesn't give that info but I do know from the full data how many unique entries there have been.&lt;BR /&gt;&lt;BR /&gt;I can count the number of distinct IDs in the expression label, can I use that in the script editor and use the variable in the expression definition?&lt;BR /&gt;&lt;BR /&gt;In the script editor I have this:&lt;BR /&gt;&lt;BR /&gt;Let IDs = 151;&lt;BR /&gt;&lt;BR /&gt;I can then use =count( {BM_MyBookmark} Question ) / IDs in the expression definition.&lt;BR /&gt;&lt;BR /&gt;Can I instead do something like Let IDs = count(DISTINCT ID)?&lt;BR /&gt;&lt;BR /&gt;When I try this I get the following error:&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Aggregation expressions not allowed in GROUP BY clause&lt;/P&gt;Let IDs = count(DISTINCT ID)&lt;BR /&gt;&lt;BR /&gt;What can I use instead?&lt;BR /&gt;&lt;BR /&gt;Thanks for your time &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 02:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149471#M590078</guid>
      <dc:creator />
      <dc:date>2009-07-16T02:18:58Z</dc:date>
    </item>
    <item>
      <title>Representing the percentage value</title>
      <link>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149472#M590079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using a variable like you describe above, you could just make another load.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SQL SELECT COUNT(DISTINCT ID) As IDCount&lt;BR /&gt;FROM ID_Table&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then use: =count( {BM_MyBookmark} Question ) / IDCount in your expression.&lt;/P&gt;&lt;P&gt;I would guess that there is a way to do it in the load script with a variable, but I'm not sure how off the top of my head.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 02:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149472#M590079</guid>
      <dc:creator />
      <dc:date>2009-07-16T02:44:23Z</dc:date>
    </item>
    <item>
      <title>Representing the percentage value</title>
      <link>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149473#M590082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that works perfectly, so easy &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 02:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Representing-the-percentage-value/m-p/149473#M590082</guid>
      <dc:creator />
      <dc:date>2009-07-16T02:53:59Z</dc:date>
    </item>
  </channel>
</rss>

