<?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: Show all values 0 to 100 with precision up to 2 decimal points in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351658#M166002</link>
    <description>&lt;P&gt;why not just round off the single value field to 0 decimal places?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2017 06:40:58 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2017-09-20T06:40:58Z</dc:date>
    <item>
      <title>Show all values 0 to 100 with precision up to 2 decimal points</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351657#M166001</link>
      <description>&lt;P&gt;I am working on a single value dashboard panel where I am showing output in percentage with precision up to 2 decimal points (e.g. 60.25%). However, I want shows 0 and 100 as a whole number (NO decimal point precision for these two). Please advise whether it is possible.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 06:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351657#M166001</guid>
      <dc:creator>barunbiswas</dc:creator>
      <dc:date>2017-09-20T06:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values 0 to 100 with precision up to 2 decimal points</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351658#M166002</link>
      <description>&lt;P&gt;why not just round off the single value field to 0 decimal places?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 06:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351658#M166002</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-09-20T06:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values 0 to 100 with precision up to 2 decimal points</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351659#M166003</link>
      <description>&lt;P&gt;I think I should have been more clear with my question. I want to show all values except 0 &amp;amp; 100 with precision up to 2 decimal points (e.g. 60.25%); and I want to show 0 &amp;amp; 100 as a whole number. Any advice on this please.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 08:11:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351659#M166003</guid>
      <dc:creator>barunbiswas</dc:creator>
      <dc:date>2017-09-20T08:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values 0 to 100 with precision up to 2 decimal points</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351660#M166004</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Try  this, assuming X is your single value field :&lt;BR /&gt;
|  eval x=if(floor(x)=x,floor(x),x)&lt;BR /&gt;
| where x!=0&lt;BR /&gt;
| eval x=x." %"&lt;BR /&gt;
| fields _time,x&lt;/P&gt;

&lt;P&gt;Based and checked my solution on this excellent entry - &lt;A href="https://answers.splunk.com/answers/443308/how-to-round-values-to-2-decimal-places-but-only-f.html"&gt;https://answers.splunk.com/answers/443308/how-to-round-values-to-2-decimal-places-but-only-f.html&lt;/A&gt; &lt;BR /&gt;
Checked for 0 and with decimal, the solution works.&lt;BR /&gt;
Set your number format to 0.00 in the single value visualization&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 09:52:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351660#M166004</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-09-20T09:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values 0 to 100 with precision up to 2 decimal points</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351661#M166005</link>
      <description>&lt;P&gt;i think this might work for you, you'll have to code it into the SPL, not the formatting.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|eval interestingField=if(numerator/denominator*100=0 OR numerator/denominator*100=100, numerator/denominator*100, round(numerator/denominator*100,2))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Sep 2017 11:52:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351661#M166005</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-09-20T11:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values 0 to 100 with precision up to 2 decimal points</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351662#M166006</link>
      <description>&lt;P&gt;Thanks for your reply. However, it is not working in the dashboard.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 08:46:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351662#M166006</guid>
      <dc:creator>barunbiswas</dc:creator>
      <dc:date>2017-09-21T08:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values 0 to 100 with precision up to 2 decimal points</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351663#M166007</link>
      <description>&lt;P&gt;can you be more specific? what is no working? no values or the decimal?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 08:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351663#M166007</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-09-21T08:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values 0 to 100 with precision up to 2 decimal points</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351664#M166008</link>
      <description>&lt;P&gt;In dashboard, it is showing all values in 0.00 format. I think that single value visualization format is taking precedence over the spl?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 09:39:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351664#M166008</guid>
      <dc:creator>barunbiswas</dc:creator>
      <dc:date>2017-09-22T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values 0 to 100 with precision up to 2 decimal points</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351665#M166009</link>
      <description>&lt;P&gt;if you dont save it in the dashboard and just run the search and see the visualization tab, is that working?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2017 09:40:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-all-values-0-to-100-with-precision-up-to-2-decimal-points/m-p/351665#M166009</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-09-23T09:40:39Z</dc:date>
    </item>
  </channel>
</rss>

