From the course: SQL Server Analysis Services
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
All about the date table - SQL Server Tutorial
From the course: SQL Server Analysis Services
All about the date table
- [Instructor] There are a number of different ways you can create a Date Table, if you don't have one, like we do here. You can write one in SQL, create one in DAX, or download one from the internet. Your Date Table should describe a given date in lots of different ways. There are more things you might want to add in your calendar, including things like working days or holidays. To be a valid Date Table, it should contain this unique value, like we see here. Notice in this Date Table you have different parts of the date in different format, like month name, month number, day number of year and different representations for the values. So we even have fiscal year included within this Date Table. I'm going to click on Excel and take a look at some of the pivot tables in the model. Let's add the Total Sales measures that we created and the month name. Now, notice when you do this, the month of April is first, then August.…
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
-
-
-
-
-
-
(Locked)
Incorporating time intelligence2m 56s
-
(Locked)
All about the date table4m 38s
-
(Locked)
Examining three popular DAX time intelligence functions: SAMEPERIODLASTYEAR, PARALLELPERIOD, and TOTALYTD9m 22s
-
(Locked)
Writing DATESBETWEEN measures7m 14s
-
(Locked)
Challenge: Time intelligence measures3m 18s
-
(Locked)
Solution: Time intelligence measures2m 32s
-
(Locked)
-
-
-
-