It's a date

In this section, we will look at how you can use DAX, with the create table function, to create a custom date table.

In our data model, we already have some date tables. However, as we have seen, there are no dates prior to December 1, 2011. In the Product table, we have products that have values in the Available For Sale Date field that are before this date. To get around this issue, we are going to create a custom date table that covers all of the dates referenced in the Product table.

To start, we will need to create a calculated table. From Power BI Desktop, follow these steps:

  1. Switch to the Report or Data view.
  2. From the Calculations section of the Modeling ribbon, select Create New Table. This will bring up the DAX editor, ...

Get Hands-On Business Intelligence with DAX 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.