Date.xlsx (49.4 KB)
I am seeking help in correcting a month offset formula for calculating fiscal months in my company. Currently, I’m using the following formula:
(Date.Year([Dates In Period]) - Date.Year([Current Date])) * 12
- Date.Month([Dates In Period]) - (Date.Month([Current Date]))
The formula works well in most cases, but I’ve noticed an issue when the fiscal month ends on the 29th of July and starts on the 30th of July. During this transition, the month offset doesn’t show as 0 for the 30th of July until the calendar moves to the 1st of August.
Sample data:
- Fiscal month end date: 29th July
- Fiscal month start date: 30th July
- Current date: 30th July
Expected outcome: The month offset should be 0 on 30th July.
Desired Outcome: I want the formula to correctly handle cases where the fiscal month ends and starts on consecutive days, like in the example above.
Any help in resolving this issue would be greatly appreciated!
Thank you in advance.
Shruti