Complete the code to create a date table using CALENDAR function.
DateTable = CALENDAR([1], "2024-12-31")
The CALENDAR function requires start and end dates as date values, not text strings. "2024-01-01" should be converted to a date using DATE function or provided as a date value.
Complete the code to add a Year column to the date table.
Year = YEAR([1][Date])The YEAR function extracts the year from the Date column in the DateTable.
Fix the error in the code to create a date table with continuous dates.
DateTable = CALENDAR(DATE(2024,1,1), [1](2024,12,31))
The DATE function is used to create a date value from year, month, and day. Using DATE(2024,12,31) is correct.
Fill both blanks to add Month and Quarter columns to the date table.
Month = FORMAT([1][Date], [2])
FORMAT function formats the Date column from DateTable to show full month name using "MMMM".
Fill all three blanks to create a calculated column for Fiscal Year starting in July.
FiscalYear = IF(MONTH([1][Date]) >= [2], YEAR([3][Date]) + 1, YEAR([3][Date]))
This formula checks if the month is July (7) or later, then adds 1 to the year for fiscal year calculation.