Splunk Search

How to calculate percentage change?

knalla
Path Finder

Hello,

I have 2 fields current_value and previous_value, how to calculate the increase or decrease percentage based on the 2 values?

Tags (2)
0 Karma
1 Solution

pradeepkumarg
Influencer
| eval diffPercentage =  ((current_value-previous_value)/previous_value)*100

View solution in original post

pradeepkumarg
Influencer
| eval diffPercentage =  ((current_value-previous_value)/previous_value)*100
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 ...