Dashboards & Visualizations

How do I compare today’s and yesterday’s data to highlight

chriswn
Observer

I have the following table. If the number of scg fail on the day is twice that of the previous day, I want to highlight it. How should I do.

Hope you can help. Thanks!

datescg_fail_number
1/0112
1/0224
1/0330
1/0460
 
 

 

Labels (2)
0 Karma

manjunathmeti
Champion

hi @chriswn ,
Use delta command. Try this:

| makeresults 
| eval _raw="date	scg_fail_number
1/01	12
1/02	24
1/03	30
1/04	60
1/05	20" 
| multikv forceheader=1 
| delta scg_fail_number as diff 
| eval is_twice=if(2*diff>=scg_fail_number, "YES", "NO")
| table date, scg_fail_number, is_twice

 

If this reply helps you, an upvote/like would be appreciated.

0 Karma

chriswn
Observer

hi 

Thanks for your reply.

But what I want is what I show, I don’t want to add new fields.

 

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to January Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...