This one might be simple but is often requested for. Most organizations track their numbers in an operating or fiscal year which typically spans two calendar years. For example, if bookkeeping were to start every October, then Fiscal Year 2014 would mean an operating period of Oct 2013 to Sept 2014.
This post demonstrates how to auto calculate fiscal year based on month and year selection using SharePoint Designer workflow.
To better illustrate each step, here’s a screenshot of the completed workflow:
Image may be NSFW.
Clik here to view.
- Prepare your fields
At the minimum, you’ll need Month, Calendar Year, and Fiscal Year fields. Recommended format:- Month & Calendar Year = Choice fields
- Fiscal Year = Single line of text
- Hide Fiscal Year field
Because the value will be auto generated by the workflow, you won’t need this field to appear on the form (Don’t know how to hide? Read this post)
- Set initial Fiscal Year value
- Create a Variable
- Click on “Local Variables” in SPD (SharePoint Designer) ribbon
- Add an “Integer” variable named “CalculatedYear”
Image may be NSFW.
Clik here to view.
- Set value of CalculatedYear variable to Calendar Year
- Select “Set Workflow Variable” action
- Select “CalculatedYear” workflow variable
- Click on “value” then click on Image may be NSFW.
Clik here to view. - Select “Calendar Year” field. Then click OK
Image may be NSFW.
Clik here to view.
- Set initial Fiscal Year value
- Select “Set Field in Current Item” action
- Select “Fiscal Year” field
- Click on “value” then click on Image may be NSFW.
Clik here to view. - Type “FY” then click on “Add or Change Lookup” button
- Select Data source of “Workflow Variables and Parameters”
- Select “Variable: CalculatedYear” field then click OK
Image may be NSFW.
Clik here to view.
- At this point, you should see this. Click OK.
Image may be NSFW.
Clik here to view.
- Create a Variable
- Create exceptions for first Calendar Year
- Create workflow conditions
- Click in between the 2 workflow actions then add an “If any value equals value” condition
- Add all the months for the first Calendar Year as workflow conditions, e.g.: if fiscal year starts in July then create different conditions from July to December
- Change the conditions from “and” to “or” operation
Image may be NSFW.
Clik here to view.
- Add 1 to Calendar Year
- Add “Do Calculation” action
- For 1st value, select “Variable: Calculated Year”
Image may be NSFW.
Clik here to view.
- For 2nd value, type “1”
- Leave “Variable: calc” as is
- Add “Set workflow variable” action
- Select “Variable: CalculatedYear” workflow variable
- Click on “value” then click on Image may be NSFW.
Clik here to view. - Select Data source of “Workflow Variables and Parameters”
- Select “Variable: calc”
Image may be NSFW.
Clik here to view.
As a general good practice, you should create log history along the way. In this example, I created a log to differentiate between first or second Calendar Year in any given Fiscal Year.
Select these settings in SPD so your users won’t have to manually kick off the workflow.
Image may be NSFW.
Clik here to view.

Here’s the end product:
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Clik here to view.
