<?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: Single Condition to use in dashboard to plot a graph in both situations if value&amp;gt;=1 or value=0 in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Condition-to-use-in-dashboard-to-plot-a-graph-in-both/m-p/389597#M25553</link>
    <description>&lt;P&gt;many answers in this portal for this question, here are couple that i think you will find useful:&lt;BR /&gt;
also try &lt;CODE&gt;... your search ... | timechart ... | fillnull value=0 &amp;lt;your_field&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/608870/how-to-display-0-instead-of-no-results-found.html"&gt;https://answers.splunk.com/answers/608870/how-to-display-0-instead-of-no-results-found.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/582253/replacing-no-results-found-with-0.html"&gt;https://answers.splunk.com/answers/582253/replacing-no-results-found-with-0.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/336907/return-0-if-search-returns-no-results-found.html"&gt;https://answers.splunk.com/answers/336907/return-0-if-search-returns-no-results-found.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2019 17:40:55 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2019-07-16T17:40:55Z</dc:date>
    <item>
      <title>Single Condition to use in dashboard to plot a graph in both situations if value&gt;=1 or value=0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Condition-to-use-in-dashboard-to-plot-a-graph-in-both/m-p/389596#M25552</link>
      <description>&lt;P&gt;Currently, i am getting graph if value &amp;gt;=1 but if value is 0 than dashboard gives No result found on screen, is it possible to plot it on X-axis (like overlapping )showing value 0&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Condition-to-use-in-dashboard-to-plot-a-graph-in-both/m-p/389596#M25552</guid>
      <dc:creator>dkdeepshikhaa</dc:creator>
      <dc:date>2019-07-16T14:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Single Condition to use in dashboard to plot a graph in both situations if value&gt;=1 or value=0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Condition-to-use-in-dashboard-to-plot-a-graph-in-both/m-p/389597#M25553</link>
      <description>&lt;P&gt;many answers in this portal for this question, here are couple that i think you will find useful:&lt;BR /&gt;
also try &lt;CODE&gt;... your search ... | timechart ... | fillnull value=0 &amp;lt;your_field&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/608870/how-to-display-0-instead-of-no-results-found.html"&gt;https://answers.splunk.com/answers/608870/how-to-display-0-instead-of-no-results-found.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/582253/replacing-no-results-found-with-0.html"&gt;https://answers.splunk.com/answers/582253/replacing-no-results-found-with-0.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/336907/return-0-if-search-returns-no-results-found.html"&gt;https://answers.splunk.com/answers/336907/return-0-if-search-returns-no-results-found.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 17:40:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Condition-to-use-in-dashboard-to-plot-a-graph-in-both/m-p/389597#M25553</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-07-16T17:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Single Condition to use in dashboard to plot a graph in both situations if value&gt;=1 or value=0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Condition-to-use-in-dashboard-to-plot-a-graph-in-both/m-p/389598#M25554</link>
      <description>&lt;P&gt;Thank you @adonio, i looked for the answer on the portal, they are for printing the value, i need to plot it &lt;/P&gt;

&lt;P&gt;below is query , i am getting result if positive value is there but if no value than " no result found" message on the screen&lt;/P&gt;

&lt;P&gt;index=*...........&lt;BR /&gt;
| eval success1=if(success="true", 1, 0) &lt;BR /&gt;
|  eval fail1=if(success="false", 1, 0) &lt;BR /&gt;
| stats sum(success1) as SC, sum(fail1) as FC by field........... &lt;BR /&gt;
 | eval total1=SCount+FCount&lt;BR /&gt;
|  timechart sum(total1) as Total sum(SC) as Success sum(FC) as Fail&lt;BR /&gt;&lt;BR /&gt;
||fillnull value=0 &lt;BR /&gt;
| eval "percentage" &lt;/P&gt;

&lt;P&gt;if i could get some idea on what to modify in this to get required result&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 08:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Condition-to-use-in-dashboard-to-plot-a-graph-in-both/m-p/389598#M25554</guid>
      <dc:creator>dkdeepshikhaa</dc:creator>
      <dc:date>2019-07-17T08:09:51Z</dc:date>
    </item>
  </channel>
</rss>

