I need to calculate some Year-To-Date values from individual period fields based on the period input by the user. For example, if the user inputs the period as 9 the YTD would be a calculation of 9 fields, Period 1 + Period 2, etc. all the way to Period 9. Please don't tell me that I have to do this as a huge If/ElseIf statement in which I have to write out 12 different equations depending on which period is supplied by the user.
↧