I have a table full of projects that has a field for the amount of funding that each project has committed to it. I am trying to create a query that will show a running total of committed funding, grouped by fiscal year. I have already figured out how to calculate the fiscal year using this equation:
I sort of have the running total working except that the last 2 fiscal years yields the same sum. The equation for the running total is here:
The running total works correctly if I remove the "+1" off the end of the equation, but then the fiscal year field displays incorrectly.
FYear RunTotTECTERRACommitment RunTotBudgetedCost IndustryContribution
Below is the example of the query result. The value for the last 2 years should not be the same.
2011 $8,295,357.00 $15,752,522.00 $7,457,165.00
2012 $15,980,337.00 $28,968,619.00 $12,988,282.00
2013 $20,620,203.00 $37,351,847.00 $16,731,644.00
2014 $23,180,663.00 $42,412,307.00 $19,231,644.00
2015 $23,180,663.00 $42,412,307.00 $19,231,644.00
Code:
FYear: Year([DateContractSigned])-IIf([DateContractSigned]<DateSerial(Year([DateContractSigned]),4,1),1,0)+1
I sort of have the running total working except that the last 2 fiscal years yields the same sum. The equation for the running total is here:
Code:
RunTotTECTERRACommitment: Format(DSum("[TECTERRACommitment]","tblProject","Datepart('yyyy',[DateContractSigned])<=" & [Fyear] & ""),"$0,000.00")
The running total works correctly if I remove the "+1" off the end of the equation, but then the fiscal year field displays incorrectly.
FYear RunTotTECTERRACommitment RunTotBudgetedCost IndustryContribution
Below is the example of the query result. The value for the last 2 years should not be the same.
2011 $8,295,357.00 $15,752,522.00 $7,457,165.00
2012 $15,980,337.00 $28,968,619.00 $12,988,282.00
2013 $20,620,203.00 $37,351,847.00 $16,731,644.00
2014 $23,180,663.00 $42,412,307.00 $19,231,644.00
2015 $23,180,663.00 $42,412,307.00 $19,231,644.00