Forum Discussion
Converting Fiscal date to calendar date
- Anonymous3 years ago
I managed to solve it in the end by creating a conditional column that subtracts 1 from the year if the month is Oct, Nov or Dec. I then combined the Day, Month & Year column into a date column. Not the prettiest solution I'm sure but it seems to work.
= Table.AddColumn(#"Removed Columns2", "Custom", each if [Month] = "October" then [Fiscal Year]-1 else if [Month] = "November" then [Fiscal Year]-1 else if [Month] = "December" then [Fiscal Year]-1 else [Fiscal Year])
I managed to solve it in the end by creating a conditional column that subtracts 1 from the year if the month is Oct, Nov or Dec. I then combined the Day, Month & Year column into a date column. Not the prettiest solution I'm sure but it seems to work.
= Table.AddColumn(#"Removed Columns2", "Custom", each if [Month] = "October" then [Fiscal Year]-1 else if [Month] = "November" then [Fiscal Year]-1 else if [Month] = "December" then [Fiscal Year]-1 else [Fiscal Year])