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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

VLOOKUP Equivalent in Power BI

Hello,

 

I have 2 tables, Actual, New Hire List and Driver List. 

 

Table 1: (Actual - Has Employee ID of both New Hires and Drivers)

Date Emp ID Order Number 

xxxx   1             1234

xxxx   2             1235

xxxx   3             1236

xxxx   4             1236

 

Table 2: (New Hires)

Date    Emp ID  Job Title

xxxx      1           New Hire

xxxx       2         Driver

xxxx       3         New Hire

xxxx       4        Driver

 

Thus, I want a column in Table 1 as follows: 

 

Date Emp ID Order Number   Job Title

xxxx   1             1234                New Hire

xxxx   2             1235                Driver

xxxx   3             1236                New Hire

xxxx   4             1236                Driver

 

I want to match the EMP Id's from Table 1 to the 2nd table and get their job title in Table 1. Is this possible in Power BI?

 

Thank you.

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous Yes, it's called "LOOKUPVALUE()" --

 

If you are going to put it on the 'Actual' table, the formula you want is:

 

 Job Title = LOOKUPVALUE('New Hires'[Job Title], 'New Hires'[Emp ID], 'Actual'[Emp ID])

 

Hope this helps 🙂

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@Anonymous Yes, it's called "LOOKUPVALUE()" --

 

If you are going to put it on the 'Actual' table, the formula you want is:

 

 Job Title = LOOKUPVALUE('New Hires'[Job Title], 'New Hires'[Emp ID], 'Actual'[Emp ID])

 

Hope this helps 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.