DAX Function Guide
DATESYTD
Sam McKay
CEO & Founder
How does the DATESYTD work?
DATESYTD Formula Syntax
DATESYTD(
<dates> [,<year_end_date>]
)
How do you use the DATESYTD?
The DATESYTD is used to calcute the year to date value. This function can be used with CALCULATE function to combine multiple filter criteria together.
Related Blog Posts
Loading
Considerations when using the DATESYTD?
The dates argument 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.
The year_end_date parameter is a string literal of a date, in the same locale as the locale of the client where the workbook was created. The year portion of the date is ignored.
Related Video Tutorials
Loading
Formula examples using the DATESYTD
=CALCULATE(SUM(InternetSales_USD[SalesAmount_USD]), DATESYTD(DateTime[DateKey]))
= CALCULATE(SUM(incidents[Value]);DATESYTD(incidents[Date]);ALL())
= CALCULATE( SUM(FactInternetSales[SalesAmount]), DATESYTD( FactInternetSales[OrderDate].[Date] ) )
Related Courses
Loading