I am using Query to calculate cumulative values like :
..sum(Total) over(order by Total desc) As Cumulative
But it calculates the same value at a time.
Here is my output:
Error type Total Cumulative
E1 10 10
E2 5 20
E3 5 20
E4 3 26
E5 3 26
I would like the following:
Error type Total Cumulative
E1 10 10
E2 5 15
E3 5 20
E4 3 23
E5 3 26
I'm not sure how to figure this out.