<?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 create dimensions based on percentage ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-dimensions-based-on-percentage/m-p/215803#M69211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the ranges are the same and in your example that would be the case as each range is 5% then you can use the class function. What information are you dividing up? If the information is fixed it should just be a class(Field,5%,x,0). I'm not sure it is going to take the 5% as a number, but give it a try.&lt;/P&gt;&lt;P&gt;If the grouping is fixed you can also create these groups in the script. If the grouping is based on a calculation you may have to use an aggr() within the class function. For example, class(aggr(sum(Sales)/sum(total Sales),Customer),5%,x,0).&lt;/P&gt;&lt;P&gt;If the ranges are of varying lengths (e.g. 0-20%,20-100%) then investigate the valuelist function in the forum.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Dec 2010 17:28:42 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2010-12-07T17:28:42Z</dc:date>
    <item>
      <title>How to create dimensions based on percentage ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-dimensions-based-on-percentage/m-p/215802#M69210</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;I want to study analytics from websites.&lt;/P&gt;&lt;P&gt;To do so, I want to slice all my sample in chunk of 5% to have the following thing in X-Avis :&lt;/P&gt;&lt;P&gt;1. 0-5%&lt;/P&gt;&lt;P&gt;2. 6-10%&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;.95-100%&lt;/P&gt;&lt;P&gt;How can I create automatically if possible this axis from my data ?&lt;/P&gt;&lt;P&gt;Can I use the function class() ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 17:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-dimensions-based-on-percentage/m-p/215802#M69210</guid>
      <dc:creator />
      <dc:date>2010-12-07T17:06:27Z</dc:date>
    </item>
    <item>
      <title>How to create dimensions based on percentage ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-dimensions-based-on-percentage/m-p/215803#M69211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the ranges are the same and in your example that would be the case as each range is 5% then you can use the class function. What information are you dividing up? If the information is fixed it should just be a class(Field,5%,x,0). I'm not sure it is going to take the 5% as a number, but give it a try.&lt;/P&gt;&lt;P&gt;If the grouping is fixed you can also create these groups in the script. If the grouping is based on a calculation you may have to use an aggr() within the class function. For example, class(aggr(sum(Sales)/sum(total Sales),Customer),5%,x,0).&lt;/P&gt;&lt;P&gt;If the ranges are of varying lengths (e.g. 0-20%,20-100%) then investigate the valuelist function in the forum.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 17:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-dimensions-based-on-percentage/m-p/215803#M69211</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-12-07T17:28:42Z</dc:date>
    </item>
  </channel>
</rss>

