DATESYTD Returns a table that contains a column of the dates for the year to date, in the current context.
Dates – A column that contains dates.
year_end_date (optional) – A literal string with a date that defines the year-end date. The default is December 31.
A table containing a single column of date values.