Dashboards & Visualizations

Calculation of the kwh difference in an Energy Dashboard

alex8103
Explorer

Hello everyone,

can anyone help me with how I can get the difference to the previous value from a device that sends me the total kwh number in order to be able to calculate a consumption per specified time in the Splunk dashboard? Currently, I am only shown an ever-increasing value.

Thank you very much!

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

You have several options

1) The delta command to calculate the difference

2) The autoregress command to copy over value from previous result row and calculate difference manually

3) The streamstats command to do the same as 2) but in a more complicated way 😉

alex8103
Explorer

Ah, very good. Thank you!

 

 

 

 

0 Karma
Get Updates on the Splunk Community!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...