• 21. 3. 2020
  • Ing. Jan Zedníček - Data Engineer & Controlling
  • 0

Function REALTED is very frequent and useful in DAX language. We can use it for example when we need to search table (A) for value from other table (B). And finding the according value is the exact task of this function.

Syntax is very simple:

How Come RELATED Function Needs Only 1 Parameter?

Data organization in Power BI consisting of tables connected in data model is the answer. And so because references exist between the tables, there is no need for the function to have multiple parameters. This is the difference compared to function VLOOKUP which needs 4 parameters.

When and How to Use Function RELATED in DAX?

The possibility to use the function is limited. We can use it only in case when we query into the table which returns only 1 value. In our case, we can only query from factual table FactInternetSales.

1) I create new column in this table and write a formula. You can see in the picture below how the function starts to automatically offer values from tables into which it sees.


2) I will let it add territory to every record on sales from table DimSalesTerritory using entry “RELATED(DimSalesTerritory[SalesTerritoryCountry])”


Rate this post

Ing. Jan Zedníček - Data Engineer & Controlling

My name is Jan Zedníček and I have been working as a freelancer for many companies for more than 10 years. I used to work as a financial controller, analyst and manager at many different companies in field of banking and manufacturing. When I am not at work, I like playing volleyball, chess, doing a workout in the gym.

🔥 If you found this article helpful, please share it or mention me on your website

Leave a Reply

Your email address will not be published. Required fields are marked *