<?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: Sorting Multivalue Stacked Bar Chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sorting-Multivalue-Stacked-Bar-Chart/m-p/69288#M17381</link>
    <description>&lt;P&gt;Okay, based on your post, I would run the search this way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sccm Size&amp;gt;0 
| chart avg(Size) as AvgSize by SiteCode
| sort -AvgSize
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 20 Dec 2012 18:44:55 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-12-20T18:44:55Z</dc:date>
    <item>
      <title>Sorting Multivalue Stacked Bar Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sorting-Multivalue-Stacked-Bar-Chart/m-p/69285#M17378</link>
      <description>&lt;P&gt;Anyone have an idea to sort a multivalued stacked bar chart based on the value? I already tried | sort -Size.&lt;/P&gt;

&lt;P&gt;The search is: index=sccm Size&amp;gt;0 | chart avg(Size) by Directory, SiteCode&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2012 22:01:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sorting-Multivalue-Stacked-Bar-Chart/m-p/69285#M17378</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2012-12-19T22:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Multivalue Stacked Bar Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sorting-Multivalue-Stacked-Bar-Chart/m-p/69286#M17379</link>
      <description>&lt;P&gt;Hmm, if you want to add up the average sizes of the SiteCodes and sort by the total, you will need to know the values of the site codes. For my example, I will ensure that the values of the site codes all begin with "SiteCode:"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sccm Size&amp;gt;0 
| eval SiteCode = "SiteCode:" + SiteCode
| chart avg(Size) as AvgSize by Directory, SiteCode
| addtotals fieldname=TotalAvg SiteCode*
| sort -TotalAvg
| fields - TotalAvg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I may not really understand the question, though.&lt;/P&gt;

&lt;P&gt;And I do question the statistical validity of any chart that sums (or stacks) averages...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2012 05:46:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sorting-Multivalue-Stacked-Bar-Chart/m-p/69286#M17379</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-12-20T05:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Multivalue Stacked Bar Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sorting-Multivalue-Stacked-Bar-Chart/m-p/69287#M17380</link>
      <description>&lt;P&gt;We are not applying a sum to the site code. The site code simply acts as an identifier for different sources of data. The point of this graph is to show the average directory size per SiteCode to notice size differences..&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2012 13:14:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sorting-Multivalue-Stacked-Bar-Chart/m-p/69287#M17380</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2012-12-20T13:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Multivalue Stacked Bar Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sorting-Multivalue-Stacked-Bar-Chart/m-p/69288#M17381</link>
      <description>&lt;P&gt;Okay, based on your post, I would run the search this way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sccm Size&amp;gt;0 
| chart avg(Size) as AvgSize by SiteCode
| sort -AvgSize
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Dec 2012 18:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sorting-Multivalue-Stacked-Bar-Chart/m-p/69288#M17381</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-12-20T18:44:55Z</dc:date>
    </item>
  </channel>
</rss>

