Extract FY from Date
Hi Team,
I'm trying to extract the FY from a date. In our world the Fiscal years run from July to June & hence 1/07/19 would be FY20
I could convert the date to a Time Period & have a separate module that maps the Time Period to FY but I thought that might be overkill?
Many thanks
Mark
Best Answer
-
0
Answers
-
Hello Mark,
You should have a SYSTEM (as part of DISCO) module for time settings, where you can convert dates/periods into FY and can be referenced elsewhere in the model.
Calculate once and reference many times. You can directly convert the date into Year time period.
Thanks
Arun
0 -
Arun's right. Time setting module is a must have in every model (almost).
You can download the time filters app from the app hub to have an example:
https://community.anaplan.com/t5/Learning/Time-Filters/ba-p/28086
0 -
Thanks Nathan & Arun. I have a Time Filter module but I was asking more specifically as to how to convert a date/period & return the FY?
Cheers
Mark
0 -
Thanks @ArunManickam
I was incorrectly thinking the PERIOD function would only return the month of the date, rather than the Time Period selected as the list value!
Mark
0 -
MONTH() returns the month
you should take a look at my time filters app you might find some inspirations 🙂0 -
0
-
Also check out the INPERIOD() function
In a module dimensioned by year, this can identify in which year the date falls
Hope that helps
David
0 -
Actually this works on any module by time
David
0 -
0