DAX Function Guide
RELATED
Sam McKay
CEO & Founder
How does the RELATED work?
RELATED Formula Syntax
RELATED(
<column>
)
How do you use the RELATED?
The RELATED function needs a row context; therefore, it can only be used in calculated column expression, where the current row context is unambiguous, or as a nested function in an expression that uses a table scanning function. A table scanning function, such as SUMX, gets the value of the current row value and then scans another table for instances of that value.
Related Blog Posts
Loading
Considerations when using the RELATED?
The RELATED function requires that a relationship exists between the current table and the table with related information. The argument specifies a column reference, and the function follows a chain of one or more many-to-one relationships to fetch the value from the specified column in the related table. If a relationship does not exist, RELATED raises an error.
Related Video Tutorials
Loading
Formula examples using the RELATED
SUMX(Products ,Products[Unit Price] * RELATED(‘Stock Levels’ [QTY]))
=related(pricelist[Price per unit])
=related(DimPlayerRole[PlayerRole])
Related Courses
Loading