Table calculations

Hi,

I am looking to calculate the amount used in a graph or table.
I am recording the tag history but would like the be able to see how much was used in that specific time period but i cant add the values together i need to know the difference from the first and last reading if that makes sense?

Thanks in advance

Are you asking for the magnitude of range axis or the duration of the domain axis?

Sounds like you are recording a totalizer. The most reliable approach is to gather all of the readings between start and end timestamps (or one outside the bounds in each direction) and compute the deltas for each sample. Account for rollover (odometer-style totalizers) in each, interpolate at the boundaries, discard the impossible/odd values, then add up all of the valid deltas.

Sorry for the late reply, ended up using a power table dataset and linking the pop up calendar to the chart so the selected date range would just calculate the minimum and maximum value and give the usage of that period chosen on the chart.