Hi guys
I have a data table which looks something like this:
Date Channel Actual
1 3 4545
1 1 666
1 6 5456
2 1 1511
2 1 4888
3 1 1545
4 1 643
4 2 5697
4 3 6833
5 2 5555
6 6 5668
I want to sum the actual amount up to a certain point in time, eg i want the aggregate up to the 4th
Select sum(Actual) from table where date = 4
This only gives me the value on the 4th i also want the 1st,2nd and 3rd included in the sum.
Any help would be hugely grateful..
I have a data table which looks something like this:
Date Channel Actual
1 3 4545
1 1 666
1 6 5456
2 1 1511
2 1 4888
3 1 1545
4 1 643
4 2 5697
4 3 6833
5 2 5555
6 6 5668
I want to sum the actual amount up to a certain point in time, eg i want the aggregate up to the 4th
Select sum(Actual) from table where date = 4
This only gives me the value on the 4th i also want the 1st,2nd and 3rd included in the sum.
Any help would be hugely grateful..