Forum Discussion

FlankyPank2___'s avatar
2 years ago
Solved

Help with Fiscal Year

Hi all you clever people!

 

I'm stuck.  I created a calendar year table so as I can plot daily occupancy on a line graph.  This all works like a treat but I'd really love it to be in fiscal year.  Is there any way I can amend the data below to generate fiscal year and the relevent quarters?  I've done lots of reading but I just can't bend my brain around this one.

 

Code I used:

 

1 Date23-24 = ADDCOLUMNS(CALENDAR(Date(2023,04,01), DATE(2024,03,31)),"Month no", MONTH([Date])

2 , "Year", YEAR([Date])

3 , "Month Year", format([Date], "mmm-yyyy")

4 , "Month year sort", YEAR([Date])*100+MONTH([Date])

5 , "Qtr Year", format({Date}, "yyyy-\QQ2)

6 , "Qtr", QUARTER([Date])

7 , "Month", FORMAT([Date],"mmmm")

8 , "Month sort", month([Date]))

 

This gives me columns that look like this:

DateMonth noYearMonth YearMonth Year sortQtr YearQtrMonthMonth Sort
01/07/202372023Jul-20232023072023-Q33July7
02/07/202372023Jul-20232023072023-Q33July

7

 

Is there anyway I can convert this to fiscal?

 

Thanks so much for your time.

 

5 Replies