<?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 How to show the percentage of the selected value over all values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-show-the-percentage-of-the-selected-value-over-all-values/m-p/1666861#M449188</link>
    <description>&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;Suppose I have two columns (NAME and POINTS) like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;NAME&lt;/TD&gt;&lt;TD&gt;POINTS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jack&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mary&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Louis&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Robert&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sam&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Louis&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Tom&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;with each name potentially appearing more than once.&lt;/P&gt;&lt;P&gt;I have built a small box to display the sum of points (merely SUM(POINTS)) and, when I select John in the above example, the box shows 9 (since 4 + 5 = 9).&lt;/P&gt;&lt;P&gt;Now, I wish to build another box, to display the percentage which this points represents over all the set of names. In the above example, since the column POINTS sums 40, if no one is selected, I want the box shows 100% (= 40/40) and, if I select John, I want the box shows 22,5% (= 9/40). Is it possible?&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:28:59 GMT</pubDate>
    <dc:creator>mlarruda</dc:creator>
    <dc:date>2024-11-16T01:28:59Z</dc:date>
    <item>
      <title>How to show the percentage of the selected value over all values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-the-percentage-of-the-selected-value-over-all-values/m-p/1666861#M449188</link>
      <description>&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;Suppose I have two columns (NAME and POINTS) like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;NAME&lt;/TD&gt;&lt;TD&gt;POINTS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jack&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mary&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Louis&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Robert&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sam&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Louis&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Tom&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;with each name potentially appearing more than once.&lt;/P&gt;&lt;P&gt;I have built a small box to display the sum of points (merely SUM(POINTS)) and, when I select John in the above example, the box shows 9 (since 4 + 5 = 9).&lt;/P&gt;&lt;P&gt;Now, I wish to build another box, to display the percentage which this points represents over all the set of names. In the above example, since the column POINTS sums 40, if no one is selected, I want the box shows 100% (= 40/40) and, if I select John, I want the box shows 22,5% (= 9/40). Is it possible?&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-the-percentage-of-the-selected-value-over-all-values/m-p/1666861#M449188</guid>
      <dc:creator>mlarruda</dc:creator>
      <dc:date>2024-11-16T01:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the percentage of the selected value over all values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-the-percentage-of-the-selected-value-over-all-values/m-p/1666878#M449190</link>
      <description>&lt;P&gt;Use this expression:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;sum(POINTS)/sum({&amp;lt;Name=&amp;gt;} POINTS)&lt;/LI-CODE&gt;&lt;P&gt;The denominator uses set analysis, {&amp;lt;Name=&amp;gt;}, to ignore the user's selection in the Name field, returning the total points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This expression will ignore ALL selections, rather than just the user's selection in the Name field:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;sum(POINTS)/sum({1} POINTS)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" target="_self"&gt;More information on Set Analysis&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 17:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-the-percentage-of-the-selected-value-over-all-values/m-p/1666878#M449190</guid>
      <dc:creator>gavinlaird</dc:creator>
      <dc:date>2020-01-17T17:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the percentage of the selected value over all values?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-the-percentage-of-the-selected-value-over-all-values/m-p/1666880#M449191</link>
      <description>&lt;P&gt;Worked! Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only one observation: you wrote "Name" (lowercase) and the formula didn't work. But when I changed to "NAME" (uppercase, like the real name of my variable), it worked.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 17:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-the-percentage-of-the-selected-value-over-all-values/m-p/1666880#M449191</guid>
      <dc:creator>mlarruda</dc:creator>
      <dc:date>2020-01-17T17:52:41Z</dc:date>
    </item>
  </channel>
</rss>

