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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...