Microsoft Power BI Data Analyst Practice Question

You are developing a Power BI report that tracks daily inventory levels. The data model contains an 'Inventory' table with 'ProductKey', 'TransactionDate', and 'UnitsInStock' columns. You also have a 'Date' table that is correctly marked as a date table. You need to create a measure that calculates the closing inventory balance. The measure must show the stock level from the last date within any selected time period (e.g., month, quarter, or year), rather than a sum of the stock levels throughout the period. Which DAX formula correctly calculates this semi-additive measure?

  • CALCULATE(SUM('Inventory'[UnitsInStock]), LASTDATE('Date'[Date]))

  • SUM('Inventory'[UnitsInStock])

  • TOTALYTD(SUM('Inventory'[UnitsInStock]), 'Date'[Date])

  • AVERAGEX(VALUES('Date'[Date]), SUM('Inventory'[UnitsInStock]))

Microsoft Power BI Data Analyst
Model the Data
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot