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 as Code: From Zero to Dashboard

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

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...