<?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 to display fields in a table panel even if the result field = 0? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-display-fields-in-a-table-panel-even-if-the-result-field/m-p/462968#M79911</link>
    <description>&lt;P&gt;@jip31&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; `windows` sourcetype="Win" OR sourcetype=report OR sourcetype=abdm OR sourcetype=app OR sourcetype="flags" OR sourcetype="up" 
| stats dc(host) as count by sourcetype 
| sort -"Number of hosts" | append [| makeresults 
| eval sourcetype="Win||report||abdm||app||flags||up",sourcetype=split(sourcetype,"||"), count=0
| mvexpand sourcetype 
| table sourcetype count ]  | stats sum(count) as "Number of hosts" by sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 18 Oct 2019 08:08:35 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2019-10-18T08:08:35Z</dc:date>
    <item>
      <title>How to display fields in a table panel even if the result field = 0?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-display-fields-in-a-table-panel-even-if-the-result-field/m-p/462967#M79910</link>
      <description>&lt;P&gt;hello&lt;/P&gt;

&lt;P&gt;In a panel table, I need to display every sourcetype results even if the sourcetype result = 0&lt;BR /&gt;
I have done an if condition but it doenst works&lt;BR /&gt;
could you help me please?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`windows` sourcetype="Win" OR sourcetype=report OR sourcetype=abdm OR sourcetype=app OR sourcetype="flags" OR sourcetype="up" 
| stats dc(host) as "Number of hosts" by sourcetype 
| sort -"Number of hosts"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Oct 2019 07:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-display-fields-in-a-table-panel-even-if-the-result-field/m-p/462967#M79910</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-10-18T07:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to display fields in a table panel even if the result field = 0?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-display-fields-in-a-table-panel-even-if-the-result-field/m-p/462968#M79911</link>
      <description>&lt;P&gt;@jip31&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; `windows` sourcetype="Win" OR sourcetype=report OR sourcetype=abdm OR sourcetype=app OR sourcetype="flags" OR sourcetype="up" 
| stats dc(host) as count by sourcetype 
| sort -"Number of hosts" | append [| makeresults 
| eval sourcetype="Win||report||abdm||app||flags||up",sourcetype=split(sourcetype,"||"), count=0
| mvexpand sourcetype 
| table sourcetype count ]  | stats sum(count) as "Number of hosts" by sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Oct 2019 08:08:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-display-fields-in-a-table-panel-even-if-the-result-field/m-p/462968#M79911</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-10-18T08:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to display fields in a table panel even if the result field = 0?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-display-fields-in-a-table-panel-even-if-the-result-field/m-p/462969#M79912</link>
      <description>&lt;P&gt;many thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 10:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-display-fields-in-a-table-panel-even-if-the-result-field/m-p/462969#M79912</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-10-18T10:43:07Z</dc:date>
    </item>
  </channel>
</rss>

