<?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 get a Splunk 6.3 SingleView visualization to only show number precision with decimal places if available, not for integers? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202025#M12694</link>
    <description>&lt;P&gt;SLA numbers are usually up to 4 (or more) decimal places, and that's what the visualizations are for. I guess v1.1 in Splunk 6.2 used to leave integers as they were and round floats up to 4 decimal places as I didn't do any special treatment on rounding or whatnot.&lt;/P&gt;

&lt;P&gt;It works the way it is, but it was nicer before.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2015 14:12:26 GMT</pubDate>
    <dc:creator>gustavomichels</dc:creator>
    <dc:date>2015-12-29T14:12:26Z</dc:date>
    <item>
      <title>How to get a Splunk 6.3 SingleView visualization to only show number precision with decimal places if available, not for integers?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202023#M12692</link>
      <description>&lt;P&gt;It seems the &lt;A href="http://docs.splunk.com/DocumentationStatic/WebFramework/1.2/compref_single.html"&gt;SingleView visualization in Web Framework v1.2&lt;/A&gt; in Splunk 6.3 introduced a bunch of properties, one of them being called &lt;STRONG&gt;numberPrecision&lt;/STRONG&gt;. The default is &lt;CODE&gt;0&lt;/CODE&gt; with available options being adding up to 4 zeroes (like &lt;CODE&gt;0.0000&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;I have a custom dashboard which displays percentages in single visualizations, and I want to use the decimal places but only when they are available. If the value is an integer (100%), I don't want to have extra zeroes added to it:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/OTl4GOa.png" alt="example" /&gt;&lt;/P&gt;

&lt;P&gt;I don't see a way to do it with the current controls, something like "only round if not integer". Does anyone have any ideas?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 13:30:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202023#M12692</guid>
      <dc:creator>gustavomichels</dc:creator>
      <dc:date>2015-12-29T13:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a Splunk 6.3 SingleView visualization to only show number precision with decimal places if available, not for integers?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202024#M12693</link>
      <description>&lt;P&gt;Interesting question. I don't know myself. Hopefully someone here can. &lt;/P&gt;

&lt;P&gt;But as an aside do you need (or have!) that level of precision? ie 1/100,000th&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 13:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202024#M12693</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-12-29T13:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a Splunk 6.3 SingleView visualization to only show number precision with decimal places if available, not for integers?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202025#M12694</link>
      <description>&lt;P&gt;SLA numbers are usually up to 4 (or more) decimal places, and that's what the visualizations are for. I guess v1.1 in Splunk 6.2 used to leave integers as they were and round floats up to 4 decimal places as I didn't do any special treatment on rounding or whatnot.&lt;/P&gt;

&lt;P&gt;It works the way it is, but it was nicer before.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 14:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202025#M12694</guid>
      <dc:creator>gustavomichels</dc:creator>
      <dc:date>2015-12-29T14:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a Splunk 6.3 SingleView visualization to only show number precision with decimal places if available, not for integers?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202026#M12695</link>
      <description>&lt;P&gt;Fair enough. 6 nines is pretty full on though. 84 ms a day of downtime!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 15:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202026#M12695</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-12-29T15:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a Splunk 6.3 SingleView visualization to only show number precision with decimal places if available, not for integers?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202027#M12696</link>
      <description>&lt;P&gt;Sorry misunderstood your question. I will remove the answer so that the question stays back as unanswered.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 12:42:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202027#M12696</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2015-12-30T12:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a Splunk 6.3 SingleView visualization to only show number precision with decimal places if available, not for integers?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202028#M12697</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;your query ...... | eval splits=split(value,".")  | eval count=mvcount(splits) | eval value=if(count&amp;gt;1,value,mvindex(splits,0)) | eval value=value."%" | table value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now choose your visualization to be "single value".&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 13:10:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202028#M12697</guid>
      <dc:creator>thirumalreddyb</dc:creator>
      <dc:date>2015-12-30T13:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a Splunk 6.3 SingleView visualization to only show number precision with decimal places if available, not for integers?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202029#M12698</link>
      <description>&lt;P&gt;This works, but I just needed to round the value when the if for count &amp;gt; 1 is true.&lt;/P&gt;

&lt;P&gt;Nice hack, transformed it into a string with the % sign &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 17:27:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202029#M12698</guid>
      <dc:creator>gustavomichels</dc:creator>
      <dc:date>2016-01-08T17:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a Splunk 6.3 SingleView visualization to only show number precision with decimal places if available, not for integers?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202030#M12699</link>
      <description>&lt;P&gt;Thank you, for number precision it is working fine, but the value is displayed black. I want to get colored values accordingly e.g: 0%-40% green, 40%-80% blue etc . Is it possible?&lt;BR /&gt;
Can you help me with it.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 10:45:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-a-Splunk-6-3-SingleView-visualization-to-only-show/m-p/202030#M12699</guid>
      <dc:creator>sowjanyasama</dc:creator>
      <dc:date>2017-10-12T10:45:16Z</dc:date>
    </item>
  </channel>
</rss>

