Is it possible to calculate the cummulative sum over groups in azure stream analytics?
This is the input:
TMS product amount
2023-06-01 10:00:00 P1 10
2023-06-01 10:00:20 P2 40
2023-06-01 10:00:25 P2 30
2023-06-01 10:01:05 P1 20
2023-06-01 10:01:20 P2 60
2023-06-01 10:01:25 P1 70
This should be the output;
TMS product cum_sum
2023-06-01 10:00:00 P1 10
2023-06-01 10:00:20 P2 40
2023-06-01 10:00:25 P2 70
2023-06-01 10:01:05 P1 30
2023-06-01 10:01:20 P2 140
2023-06-01 10:01:25 P1 100
Unfortunately I have not found a solution yet.