<?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 sort columns in chart with row-split in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-columns-in-chart-with-row-split/m-p/258900#M77592</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to graph data per Area split by WeekNumber:&lt;BR /&gt;&lt;BR /&gt;
| chart &lt;EM&gt;Values&lt;/EM&gt; by &lt;EM&gt;Area&lt;/EM&gt; &lt;EM&gt;WeekNumber&lt;/EM&gt; &lt;BR /&gt;
Both - Values and WeekNuber are numbers, however WeekNmubers in the graph are sorted as if they are string type ( 10, 11, 9 instead of 9, 10, 11).&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/1169iAB7D67F8B34448FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
If I swap series:&lt;BR /&gt;
| chart &lt;EM&gt;Values&lt;/EM&gt; by &lt;EM&gt;WeekNuber&lt;/EM&gt; &lt;EM&gt;Area&lt;/EM&gt;&lt;BR /&gt;
 the WeekNumbers are sorted correctly on X-Axis (9, 10, 11).&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/1170iAA5AE701B1B7BE8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
I tried using "sort &lt;EM&gt;WeekNumber&lt;/EM&gt;" and didn't have any impact on column order.&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2016 22:31:30 GMT</pubDate>
    <dc:creator>lem</dc:creator>
    <dc:date>2016-03-21T22:31:30Z</dc:date>
    <item>
      <title>How to sort columns in chart with row-split</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-columns-in-chart-with-row-split/m-p/258900#M77592</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to graph data per Area split by WeekNumber:&lt;BR /&gt;&lt;BR /&gt;
| chart &lt;EM&gt;Values&lt;/EM&gt; by &lt;EM&gt;Area&lt;/EM&gt; &lt;EM&gt;WeekNumber&lt;/EM&gt; &lt;BR /&gt;
Both - Values and WeekNuber are numbers, however WeekNmubers in the graph are sorted as if they are string type ( 10, 11, 9 instead of 9, 10, 11).&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/1169iAB7D67F8B34448FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
If I swap series:&lt;BR /&gt;
| chart &lt;EM&gt;Values&lt;/EM&gt; by &lt;EM&gt;WeekNuber&lt;/EM&gt; &lt;EM&gt;Area&lt;/EM&gt;&lt;BR /&gt;
 the WeekNumbers are sorted correctly on X-Axis (9, 10, 11).&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/1170iAA5AE701B1B7BE8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
I tried using "sort &lt;EM&gt;WeekNumber&lt;/EM&gt;" and didn't have any impact on column order.&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 22:31:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-columns-in-chart-with-row-split/m-p/258900#M77592</guid>
      <dc:creator>lem</dc:creator>
      <dc:date>2016-03-21T22:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort columns in chart with row-split</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-columns-in-chart-with-row-split/m-p/258901#M77593</link>
      <description>&lt;P&gt;As a mildly dirty workaround, you could use &lt;CODE&gt;09&lt;/CODE&gt; as your week number - then string ordering will do what you need.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 22:41:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-columns-in-chart-with-row-split/m-p/258901#M77593</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-03-21T22:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort columns in chart with row-split</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-columns-in-chart-with-row-split/m-p/258902#M77594</link>
      <description>&lt;P&gt;Thank you Martin, Appending zero did the trick. Wish there was a better way to do this though. Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 02:59:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-columns-in-chart-with-row-split/m-p/258902#M77594</guid>
      <dc:creator>lem</dc:creator>
      <dc:date>2016-03-22T02:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort columns in chart with row-split</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-columns-in-chart-with-row-split/m-p/258903#M77595</link>
      <description>&lt;P&gt;[OT] sorry this is not an answer, but could you tell me how to display values above the columns charts? thankyou so much!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 10:22:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-columns-in-chart-with-row-split/m-p/258903#M77595</guid>
      <dc:creator>mikymasterlace</dc:creator>
      <dc:date>2017-04-18T10:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort columns in chart with row-split</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-columns-in-chart-with-row-split/m-p/258904#M77596</link>
      <description>&lt;P&gt;In the chart's format menu's general tab, turn on "show data values".&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 17:20:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-columns-in-chart-with-row-split/m-p/258904#M77596</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2017-04-18T17:20:22Z</dc:date>
    </item>
  </channel>
</rss>

