Question 260
A report has no relationship between two tables but a measure needs to apply selected ProductIDs to another table. Which DAX approach fits?
Explanation
Correct Answer
Use TREATAS to apply selected ProductIDs as filters to the target table. TREATAS transfers filter values even without a physical relationship.
Incorrect Answers
RELATED retrieves a single corresponding value from the related one-side table. This solves “the ProductCategory from the unique related Product dimension”; the stated issue is “needs to apply selected ProductIDs to another table”.
USERELATIONSHIP uses the specified existing relationship during that evaluation. Its application is “an active OrderDate link and inactive ShipDate link”, not the need “needs to apply selected ProductIDs to another table”.
RELATEDTABLE returns fact rows related to the current dimension row. That is a different operating condition from “needs to apply selected ProductIDs to another table”: “Use COUNTROWS of RELATEDTABLE(Sales) in the Product row”.