<?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 can I change the sort order of data in a Trellis chart? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294060#M18678</link>
    <description>&lt;P&gt;Hi Folks, &lt;BR /&gt;
We're working on an exciting new Dashboard Framework. It's currently in beta in Splunkbase here: &lt;A href="https://splunkbase.splunk.com/app/4710/"&gt;https://splunkbase.splunk.com/app/4710/&lt;/A&gt;&lt;BR /&gt;
The documentation is here: &lt;A href="https://docs.splunk.com/Documentation/DashApp/0.2.0/DashApp/IntroApp"&gt;https://docs.splunk.com/Documentation/DashApp/0.2.0/DashApp/IntroApp&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Trellis is not yet a feature in this beta version, but we're working on it, and when it's added, we'll fix the sort problems in the new app. I can't give you a timeline, but keep an eye out for beta version updates that will happen often. I suggest checking out the app, the visual editor is completely re-imagined and really new. As we add features, it'll become very powerful. You can even convert most existing Simple XML dashboards (the new source code is JSON) to the new framework (as long as the features are supported). &lt;/P&gt;

&lt;P&gt;Please check it out and give us some feedback. We think you'll be pleasantly surprised. &lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2019 16:37:06 GMT</pubDate>
    <dc:creator>emeelan_splunk</dc:creator>
    <dc:date>2019-11-20T16:37:06Z</dc:date>
    <item>
      <title>How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294050#M18668</link>
      <description>&lt;P&gt;I've been playing around with the new trellis dashboard layout. In the search we have different levels of errors, like Severity Level 1, 2, 3, etc. &lt;/P&gt;

&lt;P&gt;Is there any way to order the way the cards show up? So we can show Level 1, then 2 then three from left to right?&lt;/P&gt;

&lt;P&gt;Seems like they default to alphabetical no matter how you sort them in the search.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 20:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294050#M18668</guid>
      <dc:creator>ejharts2015</dc:creator>
      <dc:date>2017-08-17T20:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294051#M18669</link>
      <description>&lt;P&gt;This should be determined by the sort order for your data.  However, there seems to be an issue with it.  If you look at the bottom of the page in the docs, you see some communication regarding sort not working for the order of the trellis panels, only for the data in the table at the bottom.  The last comment was from June 28th regarding the issue.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;The sort command issue is SPL-142769&lt;BR /&gt;
Frobinson splunk, Splunker&lt;BR /&gt;
June 28, 2017&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;From the docs: &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.1/Viz/VisualizationTrellis"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.1/Viz/VisualizationTrellis&lt;/A&gt;&lt;BR /&gt;
To change the order in which segments appear, adjust the search to sort or change search result order.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 21:19:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294051#M18669</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2017-08-17T21:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294052#M18670</link>
      <description>&lt;P&gt;Has anyone solved this yet? I have the same problem trying to change the sort order. Currently I just something like this:&lt;/P&gt;

&lt;P&gt;base search | stats count by something| table field1 field2 field3 field4&lt;/P&gt;

&lt;P&gt;to force the sorting. It is not ideal cos if the "something" fields has a new variable, It will not be displayed.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 05:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294052#M18670</guid>
      <dc:creator>quahfamili</dc:creator>
      <dc:date>2018-06-13T05:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294053#M18671</link>
      <description>&lt;P&gt;Hi @quahfamili&lt;BR /&gt;
can you try like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval sortingtable=if(Level="level 1",1,if(Level="level 2",2,case(Level="level 3",3))) | sort sortingtable 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 06:43:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294053#M18671</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2018-06-13T06:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294054#M18672</link>
      <description>&lt;P&gt;@quahfamili try something like the following where after stats by something is sorted in required order, streamstats can be used to prefix number and then final Trellis layout will sort based on number.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search 
| stats count by something
| streamstats count as sno
| eval something=sno.":".something
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 07:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294054#M18672</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-13T07:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294055#M18673</link>
      <description>&lt;P&gt;I changed a bit so that I can sort even if there are more than 10 items.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; base search 
 | stats count by something
 | streamstats count as sno
 |eval sn=printf("%04d",sn)
 | eval something=sno.":".something
 |stats values(count) by something
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jun 2018 03:05:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294055#M18673</guid>
      <dc:creator>take001</dc:creator>
      <dc:date>2018-06-15T03:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294056#M18674</link>
      <description>&lt;P&gt;Has anyone solved this yet? I am also trying to display trellis values in a particular order. I have used something what @harishalipaka suggested and it works well for Statistics option but trellis values are still sorted in alphabetical order. &lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 23:14:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294056#M18674</guid>
      <dc:creator>kgup0003</dc:creator>
      <dc:date>2018-12-19T23:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294057#M18675</link>
      <description>&lt;P&gt;documentation still includes this instruction, but still doesn't work. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/7.2.6/Viz/VisualizationTrellis#Trellis_layout_and_dashboard_display"&gt;https://docs.splunk.com/Documentation/SplunkCloud/7.2.6/Viz/VisualizationTrellis#Trellis_layout_and_dashboard_display&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 20:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294057#M18675</guid>
      <dc:creator>cblanton</dc:creator>
      <dc:date>2019-07-23T20:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294058#M18676</link>
      <description>&lt;P&gt;It is still not possible to sort trellis panels using cloud hosted version 7.0.8.5...,Sorting in Trellis view still doesn't work in cloud hosted 7.0.8.5 &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 19:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294058#M18676</guid>
      <dc:creator>marksmeltzer</dc:creator>
      <dc:date>2019-11-15T19:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294059#M18677</link>
      <description>&lt;P&gt;I can confirm it still doesn't work in cloud hosted v7.0.8.5...&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 19:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294059#M18677</guid>
      <dc:creator>marksmeltzer</dc:creator>
      <dc:date>2019-11-15T19:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294060#M18678</link>
      <description>&lt;P&gt;Hi Folks, &lt;BR /&gt;
We're working on an exciting new Dashboard Framework. It's currently in beta in Splunkbase here: &lt;A href="https://splunkbase.splunk.com/app/4710/"&gt;https://splunkbase.splunk.com/app/4710/&lt;/A&gt;&lt;BR /&gt;
The documentation is here: &lt;A href="https://docs.splunk.com/Documentation/DashApp/0.2.0/DashApp/IntroApp"&gt;https://docs.splunk.com/Documentation/DashApp/0.2.0/DashApp/IntroApp&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Trellis is not yet a feature in this beta version, but we're working on it, and when it's added, we'll fix the sort problems in the new app. I can't give you a timeline, but keep an eye out for beta version updates that will happen often. I suggest checking out the app, the visual editor is completely re-imagined and really new. As we add features, it'll become very powerful. You can even convert most existing Simple XML dashboards (the new source code is JSON) to the new framework (as long as the features are supported). &lt;/P&gt;

&lt;P&gt;Please check it out and give us some feedback. We think you'll be pleasantly surprised. &lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 16:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/294060#M18678</guid>
      <dc:creator>emeelan_splunk</dc:creator>
      <dc:date>2019-11-20T16:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/504529#M33390</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your approach got me towards the result I wanted! I ended up with this run everywhere example to sort the pie chart trellis sorted the way I needed them&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count WHERE index=_* by index sourcetype 
| eval my_range=case(count &amp;gt; 0 AND count &amp;lt; 500, 1,count &amp;gt; 500 AND count &amp;lt; 1000, 2,count &amp;gt; 1000 AND count &amp;lt; 2000, 3, 1=1, 10) 
| stats dc(sourcetype) AS st dc(index) AS idx by my_range 
| sort - my_range 
| streamstats count as sno 
| eval something=sno.". ".my_range 
| stats sum(st) AS st sum(idx) AS idx by something&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and I hope this will help some one else while we wait for the fix ...&lt;/P&gt;&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 04:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/504529#M33390</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2020-06-16T04:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the sort order of data in a Trellis chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/565970#M46501</link>
      <description>&lt;P&gt;There's another option that works if you're looking to do some simple sorting.&lt;/P&gt;&lt;PRE&gt;| makeresults 
| eval name="Alice,Bob,Frank,Steve" 
| makemv delim="," name 
| mvexpand name 
| eval fakenumber=len(name)
| eval sorted_name=if(name=="Frank"," Frank",name)
| eval sorted_name=if(sorted_name=="Steve","  Steve",sorted_name)
| stats max(fakenumber) as namelen by sorted_name&lt;/PRE&gt;&lt;P&gt;It'll put the trellis in the order of Steve, Frank, Alice, Bob. There's two spaces before "Steve" and one before "Frank"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-09-06 at 15.18.41.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15860i85B2072C10026A77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-09-06 at 15.18.41.png" alt="Screen Shot 2021-09-06 at 15.18.41.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-09-06 at 15.18.32.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15861iE7C215055CA9F854/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-09-06 at 15.18.32.png" alt="Screen Shot 2021-09-06 at 15.18.32.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 05:21:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-change-the-sort-order-of-data-in-a-Trellis-chart/m-p/565970#M46501</guid>
      <dc:creator>terminaloutcome</dc:creator>
      <dc:date>2021-09-06T05:21:00Z</dc:date>
    </item>
  </channel>
</rss>

