<?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 order the ranges display in tables and charts, when using the rangemap command in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-order-the-ranges-display-in-tables-and-charts-when-using/m-p/485179#M31829</link>
    <description>&lt;P&gt;I want to order range from low amount of min/hour to high,&lt;BR /&gt;
like this :&lt;BR /&gt;
1S-1M, 1M-30M, 30M-1H, 1H-2H, 2H-3H, 3H-4H, 4H-5H, 5H-8H, 8H-10H, 10H-15H, 15H-More&lt;/P&gt;

&lt;P&gt;I use this command;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rangemap field=duration 1S-1M=0-60 1M-30M=61-1800 30M-1H=1801-3600 1H-2H=3601-7200 2H-3H=7201-10800 3H-4H=10801-14400 4H-5H=14401-18000 5H-8H=18001-28800 8H-10H=28801-36000 10H-15H=36001-54000 15H-More=54001-9999999999 
| chart count by range
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I get this order range;&lt;BR /&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/8473i25D5ADF44DDE4BA1/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;and I want to order them from 1S-1M, 1M-30M, 30M-1H, ... , 10H-15H, 15H-more.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Mar 2020 17:57:35 GMT</pubDate>
    <dc:creator>aryamehr360</dc:creator>
    <dc:date>2020-03-03T17:57:35Z</dc:date>
    <item>
      <title>How to order the ranges display in tables and charts, when using the rangemap command</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-order-the-ranges-display-in-tables-and-charts-when-using/m-p/485179#M31829</link>
      <description>&lt;P&gt;I want to order range from low amount of min/hour to high,&lt;BR /&gt;
like this :&lt;BR /&gt;
1S-1M, 1M-30M, 30M-1H, 1H-2H, 2H-3H, 3H-4H, 4H-5H, 5H-8H, 8H-10H, 10H-15H, 15H-More&lt;/P&gt;

&lt;P&gt;I use this command;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rangemap field=duration 1S-1M=0-60 1M-30M=61-1800 30M-1H=1801-3600 1H-2H=3601-7200 2H-3H=7201-10800 3H-4H=10801-14400 4H-5H=14401-18000 5H-8H=18001-28800 8H-10H=28801-36000 10H-15H=36001-54000 15H-More=54001-9999999999 
| chart count by range
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I get this order range;&lt;BR /&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/8473i25D5ADF44DDE4BA1/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;and I want to order them from 1S-1M, 1M-30M, 30M-1H, ... , 10H-15H, 15H-more.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 17:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-order-the-ranges-display-in-tables-and-charts-when-using/m-p/485179#M31829</guid>
      <dc:creator>aryamehr360</dc:creator>
      <dc:date>2020-03-03T17:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to order the ranges display in tables and charts, when using the rangemap command</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-order-the-ranges-display-in-tables-and-charts-when-using/m-p/485180#M31830</link>
      <description>&lt;P&gt;The range column looks to be sorted alphbetically,  If you want a different sort, add a field to sort on.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rangemap field=duration 1S-1M=0-60 1M-30M=61-1800 30M-1H=1801-3600 1H-2H=3601-7200 2H-3H=7201-10800 3H-4H=10801-14400 4H-5H=14401-18000 5H-8H=18001-28800 8H-10H=28801-36000 10H-15H=36001-54000 15H-More=54001-9999999999 
| chart count by range
| eval sorter = case(range="1S-1M", 1, range="1M-30M", 2, range="30M-1H", 3, range="1H-2H", 4, range="2H-3H", 5, range="3H-4H", 6, range="4H-5H", 7, range="5H-8", 8, range="8H-10H", 9, range="10H-15H", 10, range="15H-More", 11, 1==1, 99)
| sort sorter | fields - sorter
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Mar 2020 18:38:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-order-the-ranges-display-in-tables-and-charts-when-using/m-p/485180#M31830</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-03T18:38:00Z</dc:date>
    </item>
  </channel>
</rss>

