Date dimension view

The following sample from a date dimension SQL view includes several columns that will be needed by the Power BI dataset:

Sample date dimension columns

The Calendar Year Month Number column can be used to define the default sort order of the Calendar Yr-Mo column and can also support date intelligence DAX measure expressions that select a specific time, frame such as the trailing four months. Likewise, a prior calendar year date (or prior fiscal year date) column can be referenced in date intelligence measure expressions. The Calendar Month Status and Calendar Year Status columns make it easy for report authors to define ...

Get Mastering Microsoft Power BI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.