<?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 Create buckets based on the count of category in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-buckets-based-on-the-count-of-category/m-p/2436359#M97031</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;I have sample data, can you please help me to create buckets like top10, top20, top30 and above 30... etc&lt;/P&gt;
&lt;P&gt;PFA,&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2024 16:38:47 GMT</pubDate>
    <dc:creator>paulwalker</dc:creator>
    <dc:date>2024-04-01T16:38:47Z</dc:date>
    <item>
      <title>Create buckets based on the count of category</title>
      <link>https://community.qlik.com/t5/App-Development/Create-buckets-based-on-the-count-of-category/m-p/2436359#M97031</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;I have sample data, can you please help me to create buckets like top10, top20, top30 and above 30... etc&lt;/P&gt;
&lt;P&gt;PFA,&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 16:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-buckets-based-on-the-count-of-category/m-p/2436359#M97031</guid>
      <dc:creator>paulwalker</dc:creator>
      <dc:date>2024-04-01T16:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create buckets based on the count of category</title>
      <link>https://community.qlik.com/t5/App-Development/Create-buckets-based-on-the-count-of-category/m-p/2436395#M97034</link>
      <description>&lt;P&gt;I didn't completely grasp it, but perhaps this could offer some help.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Data:
LOAD * FROM FoodSales;

Join
LOAD *,
'Top'&amp;amp; Left(CatToCount, Index(CatToCount, '&amp;lt;')-1) as "Category Bucket";

LOAD Category,
Class(Count(Category) ,10) as CatToCount
Resident Data
Group By Category;

DROP Field CatToCount From Data;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Apr 2024 15:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-buckets-based-on-the-count-of-category/m-p/2436395#M97034</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-04-01T15:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create buckets based on the count of category</title>
      <link>https://community.qlik.com/t5/App-Development/Create-buckets-based-on-the-count-of-category/m-p/2436454#M97035</link>
      <description>&lt;P&gt;Here is an example with class() and aggr() and rank() to bucket the performance of a dimension&amp;nbsp; [Sales Rep ID]&amp;nbsp; against a measure&amp;nbsp; ( sum(Sales)):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonnyPoole_0-1712002325697.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163125i7798E4DCD60A6E55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonnyPoole_0-1712002325697.png" alt="JonnyPoole_0-1712002325697.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;aggr('Top' &amp;amp; right(class(rank(sum(Sales)),10),2),[Sales Rep ID])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 20:12:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-buckets-based-on-the-count-of-category/m-p/2436454#M97035</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2024-04-01T20:12:11Z</dc:date>
    </item>
  </channel>
</rss>

