Hi i am trying to run a cumulative total for each month spanning different years. unfortunately i cannot get the order correct for the DSum calculation as it orders by month only and i cannot figure out how to order by year and month. I thought about adding in a temporary sequential number and sorting by that but i cannot figure out how to do that either.
below is the output from my query, i need the cumulative total to run from the first month in 2013 which is 7 in this case and not from month 1 of 2014 as it is currently doing.
This is what is in my query to calculate the cumulative total.
CumTotal: Val(Format((DSum("[Monthly Total]","[q_WQ_Rainfall_Dates1]","[mMonth]<=" & [mMonth] & ""))))
Any adice/help would be great, thanks
yYear mMonth Monthly Total CumTotal
2013 7 45 1020
2013 8 101.8 1121.8
2013 9 44.5 1166.3
2013 10 139 1305.3
2013 11 169 1474.3
2013 12 27 1501.3
2014 1 0 0
2014 2 13 13
2014 3 62 75
2014 4 128.5 203.5
2014 5 569 772.5
2014 6 202.5 975
below is the output from my query, i need the cumulative total to run from the first month in 2013 which is 7 in this case and not from month 1 of 2014 as it is currently doing.
This is what is in my query to calculate the cumulative total.
CumTotal: Val(Format((DSum("[Monthly Total]","[q_WQ_Rainfall_Dates1]","[mMonth]<=" & [mMonth] & ""))))
Any adice/help would be great, thanks
yYear mMonth Monthly Total CumTotal
2013 7 45 1020
2013 8 101.8 1121.8
2013 9 44.5 1166.3
2013 10 139 1305.3
2013 11 169 1474.3
2013 12 27 1501.3
2014 1 0 0
2014 2 13 13
2014 3 62 75
2014 4 128.5 203.5
2014 5 569 772.5
2014 6 202.5 975