Which DAX functions should you use to create the columns?

Note: This question is part of a series of questions that use the same scenario. For your convenience, the scenario is repeated in each question. Each question presents a different goal and answer choices, but the text of the scenario is exactly the same in each question in this series.
You have a Microsoft SQL Server database that has the tables shown in the Database Diagram exhibit. (Click the Exhibit button.)

You plan to develop a Power BI model as shown in the Power BI Model exhibit. (Click the Exhibit button,)

You plan to use Power Bl to import data from 2013 to 2015.
Product Subcategory[Subcategory] contains NULL values.
End of Repeated Scenario.
You implement the Power Bl model.
You plan to add a table named Date to the model. The table will have columns for the date, year, month, and end of the last month, and will include data from January 1, 2013 to December 31, 2015.
The Date table and the Sales table will have a relationship.
Which DAX functions should you use to create the columns?
A. CALENDARAUTO, YEAR, MONTH, and EOMONTH
B. CALENDAR, YEAR, MONTH, and ENDOFMONTH
C. CALENDARAUTO, YEAR, MONTH, and ENDOFMONTH
D. CALENDAR, YEAR, MONTH, and EOMONTH

microsoft-exams

2 thoughts on “Which DAX functions should you use to create the columns?

  1. CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2015, 12, 31 ) ) is right. So, answer D is OK.
    CALENDARAUTO() will take min and max from all the dates in the model: Product[StartDate], Product[StartDate] ,Sales[OrderDateKey] ,Sales[DueDateKey] ,Sales[ShipDateKey] which will contain dates in the window 2013 to 2015, but maybe from 20131101 to 20150731; not the whole years. With CALENDAR the whole years will be created.

  2. why not calendar auto? Using this we can create all dates from start of year regarding to earliest date in model to end date of year regarding to latest date in model.

    Hence it gives all dates between Jan 1,2013 and Dec 31, 2015 as model has dates from 2013 to 2015.

    can you Please help me with this doubt?

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.