Splunk Search

Rounding off percentage values in pie chart not working?

lsy9891
Engager

I displayed the percentage values by enabling this:

 <option name="charting.chart.showPercent">1</option>

And I tried rounding off the values to 1 dp by using this query but it still shows 3 dp ?

host=NETWEBA* cs_method="GET" cs_uri_stem="/jpw/*" (sc_status="2**" OR sc_status="3**") NOT("ErrorGuid") | where mww_vm_ipaddress!= c_ip |stats dc(c_ip) as "Number_of_Unique_IPs" by cs_host | sort 5 - "Number_of_Unique_IPs" | 


eval Number_of_Unique_IPs = round(Number_of_Unique_IPs,1)

0 Karma

to4kawa
Ultra Champion

The automatically calculated percentage is difficult to change.
If it is not a pie chart, it can be done in various ways, but it will not fit the purpose.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...