Your Success, Our Mission!
6000+ Careers Transformed.
Power BI is a powerful business analytics tool by Microsoft that enables users to visualize and analyze data from various sources. Two of the most essential functions in Power BI for data modeling and relationship management are the LOOKUP in Power BI and RELATED functions. These functions are pivotal for users who want to create complex data models, retrieve data from related tables, and enhance their reports and dashboards with accurate and relevant data insights.
Power BI does not have a direct LOOKUP function but uses the LOOKUPVALUE function. The LOOKUPVALUE in Power BI is used to search for a value in a column from another table that is related by a relationship. Unlike the VLOOKUP function in Excel, Power BI’s LOOKUP function is optimized for large datasets and complex data relationships. It simplifies the process of finding corresponding values across different tables without the need to manually match and merge data.
The RELATED function retrieves a related value from another table. It is used in calculated columns and measures to pull in data from a related table. This function works seamlessly with Power BI’s data model, leveraging the established relationships between tables to fetch the required data.
Using the LOOKUP VALUE in Power BI involves understanding the context of your data model and ensuring that the necessary relationships are established. Here’s a step-by-step guide:
The syntax of LOOKUP in Power BI is:
| LOOKUPVALUE(<result_column>, <search_column1>, <search_value1>[, <search_column2>, <search_value2>]...) |
where,
result_column: The column that contains the value to return.
search_column: The column to search.
search_value: The value to find in the search_column.
Example:
| LOOKUPVALUE(Sales[SalesAmount], Sales[OrderID], Orders[OrderID]) |
This formula looks up the SalesAmount from the Sales table where OrderID matches the OrderID in the Orders table.
The RELATED in Power BI is a simpler function to use than the LOOKUPVALUE function and is specifically designed to pull in values from a related table based on existing relationships.
The syntax of RELATED Function is straightforward:
| RELATED(ColumnName) |
Example:
| RELATED(Orders[OrderDate]) |
This retrieves the OrderDate from the Orders table for each row in the current table.
While both LOOKUPVALUE and RELATED can be used to fetch values from other tables, they serve different purposes and are suitable for different scenarios:
Suppose you have two tables: Orders and Sales. You want to add a calculated column in the Orders table to show the sales amount.
| SalesAmount = LOOKUPVALUE(Sales[SalesAmount], Sales[OrderID], Orders[OrderID]) |
Assume you have a Sales table and a Customers table. You want to include customer names in the Sales table.
CustomerName = RELATED(Customers[CustomerName])
Understanding and effectively using the LOOKUP and RELATED functions in Power BI can significantly enhance your data modeling capabilities. These functions allow you to create powerful, data-driven reports and dashboards by seamlessly integrating data from related tables. By following best practices and optimizing your data model, you can ensure that your Power BI reports are both efficient and insightful.
Top Tutorials

Python
Python is a popular and versatile programming language used for a wide variety of tasks, including web development, data analysis, artificial intelligence, and more.

SQL
The SQL for Beginners Tutorial is a concise and easy-to-follow guide designed for individuals new to Structured Query Language (SQL). It covers the fundamentals of SQL, a powerful programming language used for managing relational databases. The tutorial introduces key concepts such as creating, retrieving, updating, and deleting data in a database using SQL queries.

Data Science
Learn Data Science for free with our data science tutorial. Explore essential skills, tools, and techniques to master Data Science and kickstart your career
All Courses (6)
Master's Degree (2)
Fellowship (2)
Certifications (2)