Hi Guys, have another quick question if someone can help
I’d like to have a running sum by time but aggregating the last values by sym.
ie
``a insert enlist (sym
timeval)!(
A;14t;1f);a insert enlist (
symtime
val)!(A;14:01t;1f);
a insert enlist (sym
timeval)!(
B;14:02t;1f);a insert enlist (
symtime
val)!(A;14:03t;1f);
a insert enlist (sym
timeval)!(
A;14:04t;2f);a insert enlist (
symtime
val)!(B;14:05t;2f);
a insert enlist (sym
timeval)!(
A;14:06t;3f);sym time valA 14:00:00.000 1A 14:01:00.000 1B 14:02:00.000 1A 14:03:00.000 1A 14:04:00.000 2B 14:05:00.000 2A 14:06:00.000 3`
So would like to have a running sum of the last values by sym
sym time val totalA 14:00:00.000 1 1A 14:01:00.000 1 1B 14:02:00.000 1 2A 14:03:00.000 1 2A 14:04:00.000 2 3B 14:05:00.000 2 4A 14:05:00.000 3 5
I can do it by making the table global and going through each time and aggregating but that is definetly not the right way to do this. Or I think I could do it by filling all the missing time for each sym and then aggregating that way but that also seems like overkill. I think there must be a nice simple way that I’m missing.
Any ideas?
Thanks!