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!

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...

Explore the Latest Educational Offerings from Splunk [January 2025 Updates]

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...