You are developing a Power BI data model that includes a 'Sales' fact table and a 'DimDate' dimension table. The model has an active relationship between 'Sales'[OrderDate] and 'DimDate'[Date], and an inactive relationship between 'Sales'[ShipDate] and 'DimDate'[Date]. You need to create a measure that calculates the total sales amount specifically by ship date. Which DAX function must you use inside a 'CALCULATE' function to activate the relationship on the ship date for this measure?
The correct answer is USERELATIONSHIP. To analyze a measure by different date roles (like order date and ship date) using a single date table, you create multiple relationships, where one is active and the others are inactive. The USERELATIONSHIP function is used within a CALCULATE statement to temporarily activate an inactive relationship for the duration of that specific calculation.
CROSSFILTER is incorrect because it modifies the filter direction of an existing active relationship; it does not activate an inactive one.
TREATAS is incorrect. It is used to apply the filter context from one table to another where no physical relationship exists, which is different from activating a predefined inactive relationship.
RELATEDTABLE is incorrect as it is a navigation function that returns a table of related rows from the 'many' side of a relationship, not for activating a relationship path for a calculation.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the USERELATIONSHIP function do in DAX?
Open an interactive chat with Bash
How is CROSSFILTER different from USERELATIONSHIP in Power BI?
Open an interactive chat with Bash
When should TREATAS be used instead of USERELATIONSHIP?
Open an interactive chat with Bash
Microsoft Power BI Data Analyst
Model the Data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .