Menu
CoddyTech

DATESYTD Inside CALCULATE

Part of the Time Intelligence section of Coddy's Power BI journey. Lesson 7 of 17.

DATESYTD(Dates[Date]) is the dates of the year so far, used as a CALCULATE filter.

Customers YTD = CALCULATE([Customers], DATESYTD(Dates[Date]))

A customer of January and March counts once in the year: count over the dates, never add months.

CALCULATE takes other filters next to the dates.

challenge icon

Challenge

Easy

How many different customers has Lumen had so far this year? Write Customers YTD. It is checked for each month of each year.

Try it yourself

Customers YTD =
YearCustomers YTD
2024
2025
Total
Fields
  • Sales
    • Revenue
    • Total Units
    • Customers
  • Products
  • Stores
  • Customers
  • Dates
    • Date
    • Year
    • Quarter
    • Month
    • MonthNumber
    • Weekday
  • Targets

All lessons in Time Intelligence