<?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 zero value in a chart with multiple fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558620#M158698</link>
    <description>&lt;P&gt;I wanted it to work so much, but it didn't for some reason. Is that specific to all the fields? I have a chart overlay, maybe that is the reason..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 20:47:03 GMT</pubDate>
    <dc:creator>yvassilyeva</dc:creator>
    <dc:date>2021-07-07T20:47:03Z</dc:date>
    <item>
      <title>How to display zero value in a chart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558536#M158662</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am trying to create a search to display zero values in my chart. However my current search has multiple calculated fields (&lt;EM&gt; |stats&amp;nbsp; sum(count) as Count,&amp;nbsp; avg(days) as avg_days,&amp;nbsp; avg(time) as avg_time by category time)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have this done by creating a dummy search with zero values and then using max command. I would like to only show zero values for the Count. Thank you for your help in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 12:02:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558536#M158662</guid>
      <dc:creator>yvassilyeva</dc:creator>
      <dc:date>2021-07-07T12:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to display zero value in a chart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558575#M158677</link>
      <description>&lt;P&gt;Please share sample data, the current search, the current results, and a mock-up of the desired results.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 14:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558575#M158677</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-07T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to display zero value in a chart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558589#M158689</link>
      <description>&lt;P&gt;Thank you for a prompt response. Since the data is confidential i will do a close mock up of the searches:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;index=sample sourcetype=sample&amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| fields ID TYPE CLASS CATEGORY&amp;nbsp; COMP_DATE ALS BUSINESS_DAYS&amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| eval COMP_DATE = strptime(COMP_DATE , "%Y-%m-%d")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| bin span="1mon@mon" COMP_DATE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| eventstats avg(BUSINESS_DAYS) as AVG_BUS_DAYS, avg(ALS) as Target BY COMP_DATE CATEGORY&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| stats count(ID) AS COUNT, values(AVG_BUS_DAYS ) as AVG_BUS_DAYS,&amp;nbsp;&amp;nbsp;values(Target) as Target&amp;nbsp;BY COMP_DATE CATEGORY&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| sort COMP_DATE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| eval COMP_DATE= strftime(COMP_DATE, "%x")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then I do a column chart and I have a count of 0 for the month of June, and the bar for that month is not displayed in the chart. And I'd like to still show 0 value in the chart. Hope this helps a little bit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 15:55:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558589#M158689</guid>
      <dc:creator>yvassilyeva</dc:creator>
      <dc:date>2021-07-07T15:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to display zero value in a chart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558594#M158691</link>
      <description>&lt;P&gt;Zero values have display set to none, so you can use CSS to force it back on. Here is a runanywhere example dashboard&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$stayhidden$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #messagereceivedchart g.highcharts-data-label{
            display: flex !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart id="messagereceivedchart"&amp;gt;
        &amp;lt;title&amp;gt;Message received&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval _raw="Messages,Nov_20,Dec_20,Jan_21,Feb_21
Messge 0,0,1,0,0
Messge 1,1,3,1,1
Messge 2,11,0,0,0
Messge 3,1,0,0,0
Messge 4,9,5,0,0
Messge 5,1,1,0,0
Messge 6,1,1,0,0
Messge 7,0,1,0,0"
| multikv forceheader=1
| fields - _raw _time linecount
| fields - _mkv*
| fields Messages *&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Jul 2021 16:25:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558594#M158691</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-07T16:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to display zero value in a chart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558603#M158693</link>
      <description>&lt;P&gt;A column of zero height is not visible.&amp;nbsp; You should, however, be able to format the graph to display values so the empty column will show "0".&amp;nbsp; All other columns will show numbers, too.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 17:08:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558603#M158693</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-07T17:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to display zero value in a chart with multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558620#M158698</link>
      <description>&lt;P&gt;I wanted it to work so much, but it didn't for some reason. Is that specific to all the fields? I have a chart overlay, maybe that is the reason..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 20:47:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-value-in-a-chart-with-multiple-fields/m-p/558620#M158698</guid>
      <dc:creator>yvassilyeva</dc:creator>
      <dc:date>2021-07-07T20:47:03Z</dc:date>
    </item>
  </channel>
</rss>

