
- DAX Functions Tutorial
- DAX Functions - Home
- DAX Functions - Introduction
- DAX Parameter Naming Conventions
- Description Structure
- DAX Functions - Aggregation
- DAX Functions - Filter
- DAX Functions - Time Intelligence
- DAX Functions - Date and Time
- DAX Functions - Information
- DAX Functions - Logical
- Math & Trigonometric Functions
- DAX Functions - Parent & Child
- DAX Functions - Statistical
- DAX Functions - Text
- DAX Functions - Other
- DAX Functions Useful Resources
- DAX Functions - Quick Guide
- DAX Functions - Useful Resources
- DAX Functions - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
DAX Time Intelligence - DATESYTD function
Description
Returns a table that contains a column of the dates for the year to date, in the current context.
Syntax
DATESYTD (<dates>, [<year_end_date>])
Parameters
Sr.No. | Parameter & Description |
---|---|
1 | dates A column that contains dates. |
2 | year_end_date Optional. A literal string with a date that defines the year-end date. If omitted, the default is December 31. |
Return Value
A table containing a single column of date values.
Remarks
The dates parameter can be any of the following −
- A reference to a date/time column.
- A table expression that returns a single column of date/time values.
- A Boolean expression that defines a single-column table of date/time values.
Constraints on Boolean expressions −
The expression cannot reference a calculated field.
The expression cannot use CALCULATE function.
The expression cannot use any function that scans a table or returns a table, including aggregation functions.
However, a Boolean expression can use any function that looks up a single value, or that calculates a scalar value.
Example
= CALCULATE ( SUM (Sales [Sales Amount]), DATESYTD (Sales [Date]) )
dax_functions_time_intelligence.htm
Advertisements