Merging columns by sum

This is kind of a dumb problem. Because I could have solved it by a little bit of thinking in the beginning. I have a bunch of power meters that I need the combined energy readings from and show it in a table. I have all the readings saved in the historian. But didn't think to make a tag for the combined value. So my question is. Is there a way that I can get the data and add it up after the fact. (timestamps should be the same so that's not a problem).
I know I could probably write a script that could do this. But if there is some tagHistory binding or expression magic that I'm not aware of that would be great.

Example:

Are the Dataset1 and Dataset2 t_stamps exactly as shown or are there fractions of a second in the actual values in the database?


This is how it looks in the designer

There is functionality that is soooo close but not quite. The sum function just needs one more overload for merge and we are golden :smiley:


I will just try my hand at a script until someone finds a better way.

Not possible with vanilla expressions, but I bet Phil's (free) integration toolkit could do it:

Make it now ! Otherwise, future you will blame present you for working around the issue instead of fixing it !

2 Likes

Yeah it was the first thing I did after noticing my blunder :smiley: