<?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 column from table if in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512352#M34177</link>
    <description>&lt;P&gt;So I have Data like this:&lt;/P&gt;&lt;TABLE border="0" width="480" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="80" height="17"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="80"&gt;col1&lt;/TD&gt;&lt;TD width="80"&gt;col2&lt;/TD&gt;&lt;TD width="80"&gt;col3&lt;/TD&gt;&lt;TD width="80"&gt;col4&lt;/TD&gt;&lt;TD width="80"&gt;col5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;a&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;b&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;c&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;d&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;And what I want is, that column2 will not be displayed since all values in that column are "-2".&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2020 12:08:34 GMT</pubDate>
    <dc:creator>matthaeus</dc:creator>
    <dc:date>2020-08-04T12:08:34Z</dc:date>
    <item>
      <title>Remove column from table if</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512273#M34167</link>
      <description>&lt;P&gt;Hey there!&lt;/P&gt;&lt;P&gt;I'm quite new in Splunk an am struggeling again. What I'm trying to do is to hide a column if every field in that column has a certain value. I've already searched a lot online and found several solutions, that should work for me but don't.&lt;/P&gt;&lt;P&gt;Can anybody help me out here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 07:01:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512273#M34167</guid>
      <dc:creator>matthaeus</dc:creator>
      <dc:date>2020-08-04T07:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Remove column from table if</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512347#M34175</link>
      <description>&lt;P&gt;can you share some examples?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 11:59:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512347#M34175</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-04T11:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Remove column from table if</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512351#M34176</link>
      <description>&lt;P&gt;sample:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="unit,col1,col2,col3,col4,col5
a,-1,-2,-1,-1,-1
b,-1,-2,-2,-1,0
c,0,-2,0,-2,-2
d,-2,-2,0,-2,0"
| multikv forceheader=1
| table unit,col1,col2,col3,col4,col5
| untable unit cols value
| eventstats dc(value) as check1 by cols
| where !(check1=1 AND value=-2)
| xyseries unit cols value&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 12:15:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512351#M34176</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-04T12:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Remove column from table if</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512352#M34177</link>
      <description>&lt;P&gt;So I have Data like this:&lt;/P&gt;&lt;TABLE border="0" width="480" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="80" height="17"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="80"&gt;col1&lt;/TD&gt;&lt;TD width="80"&gt;col2&lt;/TD&gt;&lt;TD width="80"&gt;col3&lt;/TD&gt;&lt;TD width="80"&gt;col4&lt;/TD&gt;&lt;TD width="80"&gt;col5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;a&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;b&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;c&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;d&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;And what I want is, that column2 will not be displayed since all values in that column are "-2".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 12:08:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512352#M34177</guid>
      <dc:creator>matthaeus</dc:creator>
      <dc:date>2020-08-04T12:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Remove column from table if</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512357#M34178</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using inputcsv and outputcsv.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you run below search that contains field town has same value.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval state="AndhraPradesh,Karnataka,Tamilnadu" 
| makemv state delim="," 
| mvexpand state 
| table state 
| eval city=case(state="AndhraPradesh","Nellore,Vijayawada,Vizag",state="Karnataka","Bengaluru,Mysore",state="Tamilnadu","chennai") 
| makemv city delim="," 
| mvexpand city
| eval town="certain value"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I have written these results to csv to make use of them in search which is used in fields command. The subsearch will take fields which have different values.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval state="AndhraPradesh,Karnataka,Tamilnadu" 
| makemv state delim="," 
| mvexpand state 
| table state 
| eval city=case(state="AndhraPradesh","Nellore,Vijayawada,Vizag",state="Karnataka","Bengaluru,Mysore",state="Tamilnadu","chennai") 
| makemv city delim="," 
| mvexpand city
| eval town="certain value"
| outputcsv test.csv 
| fields [| inputcsv test.csv | stats dc(*) as * | transpose | where 'row 1' &amp;gt; 1 | table column | stats values(column) as search delim="," | table search]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 12:31:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512357#M34178</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-04T12:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Remove column from table if</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512363#M34179</link>
      <description>&lt;P&gt;Works perfectly, thanks so much!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 12:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512363#M34179</guid>
      <dc:creator>matthaeus</dc:creator>
      <dc:date>2020-08-04T12:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Remove column from table if</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512367#M34180</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp; answer works only for the data you posted, what if the values gets changed , lets say -2 becomes -3, every time you can't hardcode the value if you don't know the value exactly.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 12:51:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-column-from-table-if/m-p/512367#M34180</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-04T12:51:42Z</dc:date>
    </item>
  </channel>
</rss>

