Forum Discussion

mekkern's avatar
mekkern
Regular Visitor
8 years ago
Solved

Calculating consumption column using EARLIER function

I have power meeter readings from from 61 (M05-M65) sensors reporting every 10 min for a one week period, a total of 70875 records in my excel table. A meeter reading is reported for each sensor alon...
  • DAX0110's avatar
    8 years ago

    I would suggest doing this in the query editor with the following general steps :

     

    1. start query1

    2. sort by Pole and RTC columns (only if they aren't already sorted)

    3. add an index column

    4. add a custom column called "previndex" with the formula:  [index] - 1

    5. duplicate the query to query2

    6. merge query1 and query2 on query1[previndex] = query2[index] and query1[Pole] = query2[Pole]

    7. calculate the difference between the two [Power meter (Wm)] columns