<?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 a certain value in a single value chart when the value is not equal to zero? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-certain-value-in-a-single-value-chart-when-the/m-p/412582#M27075</link>
    <description>&lt;P&gt;Depending on the condition, these values can go Like this, &lt;/P&gt;

&lt;P&gt;Good Warning Bad&lt;BR /&gt;
0          0             100&lt;BR /&gt;
100     0               0&lt;/P&gt;

&lt;P&gt;as you notice, depending on the condition, only one contains a value while two values remain at zero&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2019 03:36:57 GMT</pubDate>
    <dc:creator>mdmaala</dc:creator>
    <dc:date>2019-04-23T03:36:57Z</dc:date>
    <item>
      <title>How to display a certain value in a single value chart when the value is not equal to zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-certain-value-in-a-single-value-chart-when-the/m-p/412579#M27072</link>
      <description>&lt;P&gt;hi! I have a single value chart wherein I want to display a certain value if that value is not equal to zero. I have three values, BAD, WARNING GOOD. when either each of these values turns to zero I will not display it in the single value and the non zero value will be the one displayed in my single value chart.&lt;/P&gt;

&lt;P&gt;here is my search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| ... mysearch 
|eval RT = T + Tt
|eval Rt = R + Rr
|eval Target= Rt * 600

|eval Bad = if((RT&amp;gt;Target),RT,0)
|eval Warning = if((RT&amp;lt;=(Target-1)) AND (RT&amp;gt;(Target/2)),RT,0)
|eval Good = if((RT&amp;lt;=((Target/2)-1)),RT,0)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Apr 2019 08:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-certain-value-in-a-single-value-chart-when-the/m-p/412579#M27072</guid>
      <dc:creator>mdmaala</dc:creator>
      <dc:date>2019-04-22T08:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a certain value in a single value chart when the value is not equal to zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-certain-value-in-a-single-value-chart-when-the/m-p/412580#M27073</link>
      <description>&lt;P&gt;Can you provide expected output with sample values of fields Bad/Warning/Good?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 19:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-certain-value-in-a-single-value-chart-when-the/m-p/412580#M27073</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-22T19:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a certain value in a single value chart when the value is not equal to zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-certain-value-in-a-single-value-chart-when-the/m-p/412581#M27074</link>
      <description>&lt;P&gt;I'd try a case statement. If I follow your logic it might look something like this. This way you end up with just one field and one value to then display in your single value visualization. The "fixme" at the end is just in case there is some logic issues to work out you get some result vs everything not evaluating as true.&lt;/P&gt;

&lt;P&gt;| eval foo = case(RT&amp;gt;Target, "Bad", RT&amp;lt;=(Target-1) AND (RT&amp;gt;(Target/2)), "Warning", RT&amp;lt;=((Target/2)-1), "Good", 1=1, "fixme")&lt;BR /&gt;
| fields foo&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 19:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-certain-value-in-a-single-value-chart-when-the/m-p/412581#M27074</guid>
      <dc:creator>mrunals</dc:creator>
      <dc:date>2019-04-22T19:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a certain value in a single value chart when the value is not equal to zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-certain-value-in-a-single-value-chart-when-the/m-p/412582#M27075</link>
      <description>&lt;P&gt;Depending on the condition, these values can go Like this, &lt;/P&gt;

&lt;P&gt;Good Warning Bad&lt;BR /&gt;
0          0             100&lt;BR /&gt;
100     0               0&lt;/P&gt;

&lt;P&gt;as you notice, depending on the condition, only one contains a value while two values remain at zero&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 03:36:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-certain-value-in-a-single-value-chart-when-the/m-p/412582#M27075</guid>
      <dc:creator>mdmaala</dc:creator>
      <dc:date>2019-04-23T03:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a certain value in a single value chart when the value is not equal to zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-certain-value-in-a-single-value-chart-when-the/m-p/412583#M27076</link>
      <description>&lt;P&gt;I will try this then I will get back if this works for me, thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 03:40:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-certain-value-in-a-single-value-chart-when-the/m-p/412583#M27076</guid>
      <dc:creator>mdmaala</dc:creator>
      <dc:date>2019-04-23T03:40:57Z</dc:date>
    </item>
  </channel>
</rss>

