To prepare for this recipe, perform the following steps:
- Create a table called R01_Sales by importing the Sales.csv file from the GitHub repository here: https://github.com/PacktPublishing/DAX-Cookbook/tree/master/Chapter02.
- Create a column in theR01_Sales table using the following formula:
Year = YEAR([Date])
- Create another column in the R01_Sales table using the following formula:
Month = FORMAT([Date],"mmmm")