Chapter 3
Chapter 3
I N T R O D U C T I O N TO DA X I N P OW E R B I
Jess Ahmet
Content Developer, Datacamp
Working with dates
Example Date: 2020/09/20 12:52 Format Function
LASTDATE()
DATESBETWEEN()
DATEADD()
1 h ps://docs.microso .com/en-us/dax/format-function-dax
Di cult to troubleshoot
Bene ts:
Use of time-intelligence features to select a time horizon (e.g Today, Yesterday, Last 30
days)
Types of Analysis:
Returns a table with a single column 'date' that contains a continuous set of dates inclusive
of the speci ed dates
Returns a table with a single column 'date' that contains a continuous set of dates inclusive
of the speci ed dates
Date
2020-01-01
2020-01-02
...
2020-12-31
Syntax: CALENDARAUTO(<fiscal_year_end_month>)
Returns a table with a single column 'date' that automatically takes the earliest and latest
date in the model and internally calls CALENDAR() .
Example: CALENDARAUTO(12)
Syntax: CALENDARAUTO(<fiscal_year_end_month>)
Returns a table with a single column 'date' that automatically takes the earliest and latest
date in the model and internally calls CALENDAR() .
Example: CALENDARAUTO(12)
Date
2020-01-01
2020-07-31
...
2020-12-31
Jess Ahmet
Content Developer at DataCamp
Let's practice!
I N T R O D U C T I O N TO DA X I N P OW E R B I
Congratulations!
I N T R O D U C T I O N TO DA X I N P OW E R B I
Jess Ahmet
Content Developer at DataCamp
Course Recap
Chapter 1 Chapter 2
Quick Measures