0
0
Power BIbi_tool~20 mins

Mark as date table in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Date Table Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Why mark a table as a date table in Power BI?

What is the main reason to mark a table as a date table in Power BI?

ATo automatically create relationships between all tables in the model
BTo disable filtering on that table in reports
CTo convert all date columns into text format for easier filtering
DTo enable time intelligence functions to work correctly with that table
Attempts:
2 left
💡 Hint

Think about how Power BI uses date tables for calculations like year-to-date.

dax_lod_result
intermediate
2:00remaining
DAX measure using a marked date table

Given a date table marked as a date table and a Sales table with a 'SalesAmount' column, what is the result of this measure for the year 2023?

Sales YTD = TOTALYTD(SUM(Sales[SalesAmount]), 'Date'[Date])

Assume the Sales table has these sales amounts by date:

  • 2023-01-01: 100
  • 2023-06-01: 200
  • 2023-12-31: 300
  • 2022-12-31: 50

What is the value of Sales YTD when filtered to year 2023?

A600
B300
C350
D0
Attempts:
2 left
💡 Hint

YTD sums all sales from the start of the year to the current date in 2023.

🔧 Formula Fix
advanced
2:00remaining
Why does TOTALYTD return blank without marking the date table?

You created a date table but forgot to mark it as a date table in Power BI. You use this measure:

Sales YTD = TOTALYTD(SUM(Sales[SalesAmount]), 'Date'[Date])

Why does this measure return blank values?

ABecause TOTALYTD requires the date table to be marked to recognize the date column for time intelligence
BBecause the relationship between Sales and Date tables is inactive
CBecause the date column has text data type instead of date
DBecause the Sales table has no data for the current year
Attempts:
2 left
💡 Hint

Think about how Power BI knows which table is the official calendar.

visualization
advanced
1:30remaining
Best visualization to show monthly sales trend using a marked date table

You want to show monthly sales trends over a year using a date table marked as a date table. Which visualization type is best to clearly show this trend?

AStacked bar chart with months as legend
BPie chart showing sales by month
CLine chart with 'Date'[Month] on the axis and sum of sales on values
DTable showing sales by month and product
Attempts:
2 left
💡 Hint

Think about which chart type best shows trends over time.

data_modeling
expert
2:30remaining
Handling multiple date columns with one marked date table

Your Sales table has two date columns: 'OrderDate' and 'ShipDate'. You have one date table marked as a date table. How do you model relationships to use time intelligence on both dates?

AMark the date table twice, once for each date column
BCreate inactive relationships from the date table to both 'OrderDate' and 'ShipDate', then use USERELATIONSHIP in measures for ShipDate
CCreate two separate date tables, each marked as a date table, one for each date column
DCreate active relationships from the date table to both 'OrderDate' and 'ShipDate'
Attempts:
2 left
💡 Hint

Power BI allows only one active relationship per table pair.