From the course: Advanced Power BI: DAX Language, Formulas, and Calculations
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
DATE, YEAR, MONTH, and DAY date DAX functions - Power BI Tutorial
From the course: Advanced Power BI: DAX Language, Formulas, and Calculations
DATE, YEAR, MONTH, and DAY date DAX functions
- [Instructor] Our DAX measures can return values of different data types whether that's a number, text label, date, or even a Boolean. DAX can give us some amazing time intelligence calculation capabilities, but inputting dates into DAX that aren't already part of the data imported through Power Query can be tricky. Unlike Excel DAX data types aren't implicitly converted but rather we have to explicitly define them by specifically telling the model that it's a date. The date DAX function is quite helpful in many of these data model calculations because it returns a measure result stored as a date data type in our Power BI model. The inputs for the date function are the year, month, and day as three separate input parameters in that order. We can use measures as inputs for this function as well as values. Conversely, if we want to extract the individual date components from an existing date in the model we can use…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
DAX tables and GENERATESERIES2m 58s
-
(Locked)
DAX columns2m 43s
-
(Locked)
DAX measures3m 41s
-
(Locked)
DATE, YEAR, MONTH, and DAY date DAX functions3m 14s
-
(Locked)
CALENDAR and CALENDARAUTO DAX functions3m
-
(Locked)
DAX measure evaluation context10m 33s
-
(Locked)
CALCULATE DAX function6m 17s
-
(Locked)
DAX ruler using FIRSTDATE, LASTDATE, and PARALLELPERIOD DAX functions5m 58s
-
(Locked)
Challenge: Crop modeling1m 10s
-
(Locked)
Solution: Crop modeling4m 32s
-
-
-
-