Related Functions in DAX
The beginner level attendees of our Power BI training often find it difficult to fetch values across the tables in a data model. This problem is solved using the Related functions. The two Related functions discussed in this blog are RELATED() and RELATEDTABLE(). For both of these functions to work properly, a valid relationship must exist between the two tables in a data model.Using RELATED()
let’s look at some functions which can help you fetch data from other tables.
- Right click on the Sales table in the Fields
- Click on New Column.
- Type the following formula in the formula bar.
- Type RELATED in the formula bar after =.
- Select the List Price from the Product table.
- A calculated column with each row containing the respective List Price from the Product table has been created.
- Click on Data tab in the left Ribbon.
- Click on Sales table in the Fields.
Using RELATEDTABLE()
RELATEDTABLE() takes values from the many side of the one-to-many relationship and populates the one side of the relationship. Since there are multiple values for RALTEDTABLE() takes the table name as the input argument.
- Right click on the Customer table in the Fields
- Click on New column.
- Type the following formula in the formula bar and press Enter.
- The rows in the Sales table have been counted.
- Click on Data tab in the left Ribbon.
- Click on Customer table in the Fields
- Click on the Number of Sales (CC)
- Add RELATEDTABLE() before the sales in the formula.
- The related number of rows from the sales table are counted based on the incoming filter context.

RELATED() vs. RELATEDTABLE()
RELATED() and RELATEDTABLE() are the two functions used to traverse one-to-many relationship in DAX. The few key differences between the two functions are:RELATED() | RELATEDTABLE() | |
Input Argument | Column name | Table name |
Output | Single value from the current row. | A table of values |
Takes values from | one side of relationship | many side of the relationship |
Populates | many side of the relationship | one side of relationship |