Challenge - 5 Problems
Date Table Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ dax_lod_result
intermediate1:30remaining
Calculate the number of days in the Date table
Given a Date table created with the following DAX expression:
What is the result of the measure:
?
Date = CALENDAR(DATE(2023,1,1), DATE(2023,12,31))What is the result of the measure:
DayCount = COUNTROWS(Date)?
Power BI
Date = CALENDAR(DATE(2023,1,1), DATE(2023,12,31)) DayCount = COUNTROWS(Date)
Attempts:
2 left
💡 Hint
Remember that 2023 is not a leap year.
✗ Incorrect
The CALENDAR function creates a table with all dates from January 1, 2023 to December 31, 2023 inclusive. Since 2023 is not a leap year, there are 365 days.
❓ data_modeling
intermediate1:30remaining
Identify the correct way to add a Month Name column to a Date table
You have a Date table with a column [Date]. You want to add a calculated column that shows the full month name (e.g., "January", "February"). Which DAX expression correctly creates this column?
Attempts:
2 left
💡 Hint
Use FORMAT to convert dates to text month names.
✗ Incorrect
The FORMAT function with "MMMM" returns the full month name from a date. MONTH returns the month number, YEAR returns the year number, and DAY returns the day number.
❓ visualization
advanced1:30remaining
Best visualization to show sales trend by month using a Date table
You have a Date table with a Month column and a Sales table with daily sales. You want to create a report showing total sales trend by month over a year. Which visualization type is best suited for this?
Attempts:
2 left
💡 Hint
Think about showing trends over time.
✗ Incorrect
A Line Chart is best to show trends over time such as monthly sales. Stacked Bar Charts are better for comparing categories, Pie Charts show proportions, and Scatter Plots show relationships between two numeric variables.
🎯 Scenario
advanced2:00remaining
Handling missing dates in a sales dataset using a Date table
Your sales data has missing dates for some days with no sales. You want to create a report that shows daily sales including zero sales for missing dates. How can a Date table help you achieve this?
Attempts:
2 left
💡 Hint
Think about how Date tables provide a continuous timeline.
✗ Incorrect
Using a Date table with a relationship to sales allows the report to show all dates. Measures can return zero for dates with no sales, ensuring no gaps in the timeline.
🔧 Formula Fix
expert1:30remaining
Identify the error in this Date table creation DAX expression
You wrote this DAX to create a Date table:
What error will Power BI show when you try to create this table?
Date = CALENDAR(DATE(2023,1,1), DATE(2023,12,32))What error will Power BI show when you try to create this table?
Power BI
Date = CALENDAR(DATE(2023,1,1), DATE(2023,12,32))
Attempts:
2 left
💡 Hint
Check the date arguments carefully.
✗ Incorrect
The DATE function requires valid day values. December has only 31 days, so day 32 is invalid and causes an error.