0
0
Power BIbi_tool~10 mins

Mark as date table in Power BI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to mark the 'Date' table as a date table using the correct column.

Power BI
MARKASDATETABLE('Date', '[1]')
Drag options to blanks, or click blank then click option'
ADate
BDateKey
CYear
DMonth
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a column that only contains year or month values.
Using a column with numeric keys instead of actual dates.
2fill in blank
medium

Complete the DAX expression to mark 'Calendar' as a date table using the correct date column.

Power BI
MARKASDATETABLE('Calendar', '[1]')
Drag options to blanks, or click blank then click option'
ACalendarDate
BDay
CDate
DCalendarKey
Attempts:
3 left
💡 Hint
Common Mistakes
Using a numeric key column instead of a date column.
Selecting a column that only contains day or month numbers.
3fill in blank
hard

Fix the error in the DAX code to correctly mark 'SalesDate' as a date table with the right column.

Power BI
MARKASDATETABLE('SalesDate', '[1]')
Drag options to blanks, or click blank then click option'
ADateKey
BDate
COrderDate
DSalesDate
Attempts:
3 left
💡 Hint
Common Mistakes
Using a column from another table.
Using a numeric key column instead of a date column.
4fill in blank
hard

Fill both blanks to mark 'DateTable' as a date table using the correct function and column.

Power BI
DEFINE
  VAR DateTbl = [1](DATE(2020,1,1), DATE(2020,12,31))
EVALUATE
  MARKASDATETABLE(DateTbl, '[2]')
Drag options to blanks, or click blank then click option'
ACALENDAR
BDate
CCALENDARAUTO
DDateKey
Attempts:
3 left
💡 Hint
Common Mistakes
Using CALENDARAUTO with explicit dates.
Marking with a non-date column.
5fill in blank
hard

Fill all three blanks to create a date table and mark it correctly with the right function and column.

Power BI
VAR DateRange = [1](DATE(2021,1,1), DATE(2021,12,31))
RETURN
  [2](DateRange, '[3]')
Drag options to blanks, or click blank then click option'
ACALENDAR
BMARKASDATETABLE
CDate
DCALENDARAUTO
Attempts:
3 left
💡 Hint
Common Mistakes
Using CALENDARAUTO instead of CALENDAR with explicit dates.
Marking with a column that is not a date.