<?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 Suming a % in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Suming-a/m-p/345082#M127558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you give very few information to help you on this, it's always a good idea to copy the dimensions and expressions into your posting, or at best attach a small sample that demonstrate your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your image is also cut off at the lower end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, it seems that you are using a classification like '1-10' for your buckets, probably you are using some if() functions in the script or as calculated dimension to create your buckets based on -- what? Maybe a count of Orders or something? And then the expression might calculate the count of distinct customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You see I am totally guessing, so please try to give as much information as feasible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if your dimension looks like (shortened the list of buckets here):&lt;BR /&gt;&lt;EM&gt;= aggr( if( count(Orders) =0,'0', if(count(Orders) &amp;lt;=10, '1-10','&amp;gt;10')),&amp;nbsp; Customer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and your expression is &lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count(distinct Customer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the first 7 buckets in your example will range from a 0 to 56 count, so you could calculate the total distinct Customer count for this group like&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count({&amp;lt;Customer = {"=count(Orders)&amp;lt;=56"}&amp;gt;} distinct Customer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a percentage, you need to devide by the total distinct count of all Customers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count({&amp;lt;Customer = {"=count(Orders)&amp;lt;=56"}&amp;gt;} distinct Customer) / count( distinct Customer)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2012 12:38:15 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-03-09T12:38:15Z</dc:date>
    <item>
      <title>Suming a %</title>
      <link>https://community.qlik.com/t5/QlikView/Suming-a/m-p/345081#M127557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="12016" alt="chart1.bmp" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/12016_chart1.bmp" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Hi i have this graph and i want to be able to sum the first 7 buckets of the percent.&lt;/P&gt;&lt;P&gt;So i can see the total percentage which meets the target. Is this possible as i just cant seem to be able to work it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it does not have to be on the same graph just either list box, or a chart where it just displayed the number as an led number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 11:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Suming-a/m-p/345081#M127557</guid>
      <dc:creator />
      <dc:date>2012-03-09T11:39:00Z</dc:date>
    </item>
    <item>
      <title>Suming a %</title>
      <link>https://community.qlik.com/t5/QlikView/Suming-a/m-p/345082#M127558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you give very few information to help you on this, it's always a good idea to copy the dimensions and expressions into your posting, or at best attach a small sample that demonstrate your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your image is also cut off at the lower end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, it seems that you are using a classification like '1-10' for your buckets, probably you are using some if() functions in the script or as calculated dimension to create your buckets based on -- what? Maybe a count of Orders or something? And then the expression might calculate the count of distinct customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You see I am totally guessing, so please try to give as much information as feasible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if your dimension looks like (shortened the list of buckets here):&lt;BR /&gt;&lt;EM&gt;= aggr( if( count(Orders) =0,'0', if(count(Orders) &amp;lt;=10, '1-10','&amp;gt;10')),&amp;nbsp; Customer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and your expression is &lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count(distinct Customer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the first 7 buckets in your example will range from a 0 to 56 count, so you could calculate the total distinct Customer count for this group like&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count({&amp;lt;Customer = {"=count(Orders)&amp;lt;=56"}&amp;gt;} distinct Customer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a percentage, you need to devide by the total distinct count of all Customers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count({&amp;lt;Customer = {"=count(Orders)&amp;lt;=56"}&amp;gt;} distinct Customer) / count( distinct Customer)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 12:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Suming-a/m-p/345082#M127558</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-09T12:38:15Z</dc:date>
    </item>
  </channel>
</rss>

