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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...