0
0
Power BIbi_tool~20 mins

TOTALYTD, TOTALQTD, TOTALMTD in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
πŸŽ–οΈ
Time Intelligence Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ dax_lod_result
intermediate
2:00remaining
Calculate Year-To-Date Sales Using TOTALYTD
Given a Sales table with a Date column and a SalesAmount column, what is the result of this measure on 2023-03-15?
Sales YTD = TOTALYTD(SUM(Sales[SalesAmount]), Sales[Date])
ASum of SalesAmount from 2023-01-01 to 2023-03-15
BSum of SalesAmount for the entire year 2023
CSum of SalesAmount for the month of March 2023
DSum of SalesAmount for the quarter containing March 2023
Attempts:
2 left
πŸ’‘ Hint
TOTALYTD sums values from the start of the year up to the given date.
❓ dax_lod_result
intermediate
2:00remaining
Calculate Quarter-To-Date Sales Using TOTALQTD
What does this measure return on 2023-05-10?
Sales QTD = TOTALQTD(SUM(Sales[SalesAmount]), Sales[Date])
ASum of SalesAmount for the entire year 2023
BSum of SalesAmount from 2023-01-01 to 2023-05-10
CSum of SalesAmount for the month of May 2023
DSum of SalesAmount from 2023-04-01 to 2023-05-10
Attempts:
2 left
πŸ’‘ Hint
TOTALQTD sums values from the start of the quarter to the given date.
❓ dax_lod_result
advanced
2:00remaining
Calculate Month-To-Date Sales Using TOTALMTD with Filter
Consider this measure:
Sales MTD Filtered = TOTALMTD(SUM(Sales[SalesAmount]), Sales[Date], Sales[Region] = "West")

What is the result on 2023-07-20?
ASum of SalesAmount for all regions from 2023-07-01 to 2023-07-20
BSum of SalesAmount for Region West from 2023-07-01 to 2023-07-20
CSum of SalesAmount for Region West for the entire July 2023
DSum of SalesAmount for Region West for the entire year 2023
Attempts:
2 left
πŸ’‘ Hint
TOTALMTD sums values from the start of the month to the given date, applying the filter.
❓ visualization
advanced
2:00remaining
Best Visualization to Compare YTD, QTD, and MTD Sales
You want to show Year-To-Date, Quarter-To-Date, and Month-To-Date sales side by side for each product category. Which visualization type is best?
ALine chart with time on X-axis and sales amount on Y-axis showing YTD, QTD, and MTD as lines
BPie chart showing combined sales of YTD, QTD, and MTD for all categories
CClustered column chart with product categories on X-axis and three bars per category for YTD, QTD, and MTD
DStacked area chart showing cumulative sales over the year
Attempts:
2 left
πŸ’‘ Hint
You want to compare three values side by side for each category.
🧠 Conceptual
expert
3:00remaining
Understanding Behavior of TOTALYTD with Non-Standard Fiscal Year
Your company’s fiscal year starts on April 1. You use TOTALYTD without specifying the year-end date. What will happen when calculating YTD sales on June 15, 2023?
ATOTALYTD will calculate from January 1, 2023, to June 15, 2023, ignoring the fiscal year start
BTOTALYTD will calculate from April 1, 2023, to June 15, 2023, automatically detecting fiscal year
CTOTALYTD will return an error because fiscal year start is not specified
DTOTALYTD will calculate from April 1, 2022, to June 15, 2023
Attempts:
2 left
πŸ’‘ Hint
By default, TOTALYTD assumes calendar year starting January 1.