⛏️GetSplunky!
Lv.1Intern
0 XP
0
Home Map Stats Drill Board Log In
CoursesArticlesSPL Cheat SheetCertification PathAboutPrivacyTerms

Splunky is an independent, free study resource. It is not affiliated with, endorsed by, or sponsored by Splunk or Cisco. Splunk, SPL and related marks are trademarks of Splunk, a Cisco company, and are used here only to identify the certifications this site helps you study for.

© 2026 Splunky

Back to Floor
Analytics Crucible • Room 1

Comparing Trends with .timeshift() & Ratios

Comparing current metrics against past baselines reveals seasonal regressions—like a 40% checkout drop compared to the same hour last Tuesday.

SignalFlow provides .timeshift(offset) to shift any stream forward in time so past behavior aligns directly with the current timestamp. Common offsets include '1h' (hour-over-hour), '1d' (day-over-day), and '7d' or '1w' (week-over-week).

Once aligned, you can subtract the shifted baseline from the current stream or divide to compute a percentage change: ((current - last_week) / last_week) * 100. Plotting both the current series and the percentage delta makes seasonal regressions immediately obvious.

Week-over-Week Percentage Change in SignalFlow
now = data('orders.count', rollup='sum').sum()
last_week = now.timeshift('7d')
pct_change = ((now - last_week) / last_week) * 100
pct_change.publish(label='WoW Orders % Delta')
Use .timeshift('7d') (rather than '1d') when traffic has strong weekday-vs-weekend seasonality so Monday morning is compared to last Monday morning.

Knowledge Check

Prove your understanding to clear the room (Rewards XP)
Complete the SignalFlow program to compute the ratio of current checkout traffic to traffic 7 days ago:
curr = data('checkout.requests').sum()
prev = curr.
('')
ratio = curr / prev

ratio.
(label='Traffic Ratio vs 7d Ago')