Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
David3
New Member

Vlookup?

Hi everyone,

 

I am quite new to powerbi and trying to write a measure that would return the value from table 1 column 1 only if the value in table 1 column 2 matches the value in table 2 column 1. I tried vlookup but it seems like I cant pass an entire column into it as value. Any suggestions?

 

Thanks.

2 ACCEPTED SOLUTIONS
dilumd
Solution Supplier
Solution Supplier

Hi 

 

Power BI works in a different way! there is no VLOOKUP in DAX (Power BI language) instead you can use relate command to relate two tables and then you can use relate or relatetable function to grab values from your other table.

 

Power BI offers free training course for beginners which is really good and it will not take much time to complete. Please follow the below link for the same.

 

https://powerbi.microsoft.com/en-us/guided-learning/powerbi-learning-0-0-what-is-power-bi/

 

View solution in original post

@David3

 

There's no VLOOKUP function in DAX. However, you can use LOOKUPVALUE(), or use RELATED() in CALCULATE function to achieve your goal for same scenario using VLOOKUP.

 

Please refer to articles below:

 

VLOOKUP Functionality in Power Pivot 

Equivalent of VLOOKUP in DAX–Part I

Equivalent of VLOOKUP in DAX – Part II – using TOPN

 

Regards,

View solution in original post

4 REPLIES 4
nayan28apr
Helper I
Helper I

Yes, its available in dax and can be used in measure.

 

LOOKUPVALUE(Table Column from which value need to be returned, match column for values, pass value)

This is cool!

dilumd
Solution Supplier
Solution Supplier

Hi 

 

Power BI works in a different way! there is no VLOOKUP in DAX (Power BI language) instead you can use relate command to relate two tables and then you can use relate or relatetable function to grab values from your other table.

 

Power BI offers free training course for beginners which is really good and it will not take much time to complete. Please follow the below link for the same.

 

https://powerbi.microsoft.com/en-us/guided-learning/powerbi-learning-0-0-what-is-power-bi/

 

David3
New Member

Hi everyone,

 

A very stupid question, I am quite new to Power BI and I am trying to write a simple measure. I have two tables and I want to look up and return a value in column 1 in table 1 where column 2 in table 1 matches a value from column 1 in table 2. I tried vlookup but it seems like I cant pass an entire column into it. Any suggestions?

 

Thanks in advance.

@David3

 

There's no VLOOKUP function in DAX. However, you can use LOOKUPVALUE(), or use RELATED() in CALCULATE function to achieve your goal for same scenario using VLOOKUP.

 

Please refer to articles below:

 

VLOOKUP Functionality in Power Pivot 

Equivalent of VLOOKUP in DAX–Part I

Equivalent of VLOOKUP in DAX – Part II – using TOPN

 

Regards,

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.