Meridianmeridian

Fiscal Year

datetime.period.fiscal_year

Fiscal year notation (FY prefix with 2 or 4-digit year). Common in corporate finance CSVs, government budget documents, and annual reports. The fiscal year ending period varies by organization — FY2024 may refer to a period ending in calendar 2024 or starting in 2024.

Domain
datetime
Category
period
Casts to
VARCHAR
Scope
Universal

Try it

CLI
$ finetype infer -i "FY2024"
→ datetime.period.fiscal_year

DuckDB

Detect
SELECT finetype('FY2024');
-- → 'datetime.period.fiscal_year'
Cast expression
CAST(regexp_extract({col}, 'FY(\d{2,4})') AS VARCHAR)
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'datetime.period.fiscal_year';

Struct Expansion

Expression
year: CAST(regexp_extract({col}, 'FY(\d{2,4})') AS INT)

JSON Schema

finetype schema datetime.period.fiscal_year
{
  "$id": "https://meridian.online/schemas/datetime.period.fiscal_year",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Fiscal year notation (FY prefix with 2 or 4-digit year). Common in corporate finance CSVs, government budget documents, and annual reports. The fiscal year ending period varies by organization — FY2024 may refer to a period ending in calendar 2024 or starting in 2024.",
  "examples": [
    "FY2024",
    "FY24",
    "FY2023",
    "FY25"
  ],
  "maxLength": 6,
  "minLength": 4,
  "pattern": "^FY\\d{2,4}$",
  "title": "Fiscal Year",
  "type": "string",
  "x-finetype-broad-type": "VARCHAR",
  "x-finetype-transform": "CAST(regexp_extract({col}, 'FY(\\d{2,4})') AS VARCHAR)"
}

Examples

FY2024FY24FY2023FY25