Hi all
In my data set I am returning the hour and the number of times something happens in an hour so it looks like this
Col 1 Col 2
0 2
1 4
2 2
and so on up till 23
what I want is a running total in another column so that the data will look something like
Col 1 Col 2 Col 3
0 2 2
1 4 6
2 2 8
I was looking at the rank and dense_rank functions without any luck. Is there a way to do this in a simple function?
Thanks in advance
Jeremy
In my data set I am returning the hour and the number of times something happens in an hour so it looks like this
Col 1 Col 2
0 2
1 4
2 2
and so on up till 23
what I want is a running total in another column so that the data will look something like
Col 1 Col 2 Col 3
0 2 2
1 4 6
2 2 8
I was looking at the rank and dense_rank functions without any luck. Is there a way to do this in a simple function?
Thanks in advance
Jeremy