<?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: Remove unused columns in trellis charts in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Remove-unused-columns-in-trellis-charts/m-p/360070#M999</link>
    <description>&lt;P&gt;I'm not sure if you have gotten this answered yet, but could you try using &lt;CODE&gt;|stats sum(count) as sum_count by "sip_entities.originating" sip_entities.terminating&lt;/CODE&gt; and see if that works for you.&lt;BR /&gt;
The &lt;CODE&gt;chart&lt;/CODE&gt; function will create a column for every field in the by command, regardless of if there is a value, so it'll put something in the chart visualization. &lt;CODE&gt;stats&lt;/CODE&gt;, on the other hand, will just calculate for the fields that have values. &lt;/P&gt;</description>
    <pubDate>Fri, 13 Apr 2018 13:57:34 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2018-04-13T13:57:34Z</dc:date>
    <item>
      <title>Remove unused columns in trellis charts</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Remove-unused-columns-in-trellis-charts/m-p/360069#M998</link>
      <description>&lt;P&gt;Hi I'm trying to remove unused columns from a trellis style bar chart. I think it's getting mixed up because at some point all reference points have a number, but point to point can be 0. I've removed the 0's from the corresponding table but it still shows in the chart&lt;BR /&gt;
A truncated part of the search is below:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;host=SessionManager |  stats count by "sip_entities.originating","sip_entities.terminating" | where count&amp;gt;0 |chart sum(count) over "sip_entities.originating" by sip_entities.terminating
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I use trellis mode to  generate a chart for every row under Column "A", which is perfect.&lt;BR /&gt;
However every individual chart also shows listings for for all of the columns (A-I) regardless if the value is blank . I only want to show column in each chart if they have a value over 0.&lt;BR /&gt;
For example if Row 2 of Column A has only a value in column I, I don't want to see the others in the chart.&lt;BR /&gt;
If Row 6 of column A has entries in A-F and H-I, I want it to miss out column G for that generated chart&lt;/P&gt;

&lt;P&gt;I hope this makes sense,&lt;/P&gt;

&lt;P&gt;Stu..&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 13:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Remove-unused-columns-in-trellis-charts/m-p/360069#M998</guid>
      <dc:creator>StuReeves</dc:creator>
      <dc:date>2017-09-27T13:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remove unused columns in trellis charts</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Remove-unused-columns-in-trellis-charts/m-p/360070#M999</link>
      <description>&lt;P&gt;I'm not sure if you have gotten this answered yet, but could you try using &lt;CODE&gt;|stats sum(count) as sum_count by "sip_entities.originating" sip_entities.terminating&lt;/CODE&gt; and see if that works for you.&lt;BR /&gt;
The &lt;CODE&gt;chart&lt;/CODE&gt; function will create a column for every field in the by command, regardless of if there is a value, so it'll put something in the chart visualization. &lt;CODE&gt;stats&lt;/CODE&gt;, on the other hand, will just calculate for the fields that have values. &lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 13:57:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Remove-unused-columns-in-trellis-charts/m-p/360070#M999</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2018-04-13T13:57:34Z</dc:date>
    </item>
  </channel>
</rss>

