<?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 Re: How to dynamically split a list into equal parts? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-split-a-list-into-equal-parts/m-p/265650#M43651</link>
    <description>&lt;P&gt;Combining streamstats &amp;amp; eventstats was the right way to go, thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2016 06:14:39 GMT</pubDate>
    <dc:creator>HeinzWaescher</dc:creator>
    <dc:date>2016-09-13T06:14:39Z</dc:date>
    <item>
      <title>How to dynamically split a list into equal parts?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-split-a-list-into-equal-parts/m-p/265648#M43649</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a list of customers (ColA) and depending on the total amount of customers I want to "split" the list into equal groups (let's say steps of 10%) and flag these groups.&lt;BR /&gt;
So having 20 customers and using steps of 10%, the first 2 customers are grouped together and flagged in ColB as 10%. Customers 3-4 are grouped (20%), 5-6 (30%) are grouped etc. &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1804iE1EB7426CF0198A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;When this list increases to 100 customers it should group the first 20 customers (10%), 21-40 (20%) and so on.&lt;/P&gt;

&lt;P&gt;I'm expecting some form of the streamstats command here, but can't find the solution.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;BR /&gt;
Heinz&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 10:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-split-a-list-into-equal-parts/m-p/265648#M43649</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2016-09-05T10:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically split a list into equal parts?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-split-a-list-into-equal-parts/m-p/265649#M43650</link>
      <description>&lt;P&gt;Try this runanywhere sample&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-200 | streamstats count | eval x="col_".count | table x | eventstats count as tot_evt | eval grp_cnt=.1 | eval grp=tot_evt*grp_cnt | streamstats count | eval grp=ceiling(count/grp)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Sep 2016 13:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-split-a-list-into-equal-parts/m-p/265649#M43650</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-05T13:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically split a list into equal parts?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-split-a-list-into-equal-parts/m-p/265650#M43651</link>
      <description>&lt;P&gt;Combining streamstats &amp;amp; eventstats was the right way to go, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 06:14:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-dynamically-split-a-list-into-equal-parts/m-p/265650#M43651</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2016-09-13T06:14:39Z</dc:date>
    </item>
  </channel>
</rss>

