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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
aaa222
Frequent Visitor

Look up value based on filter from another table

I have 3 tables

 

Each project has a project manager, project coordinator and admin assigned to it.

 

Table 1 shows only project manager information

Project ManagerProject ID
John Doe12345
Jane Doe78910

 

Table 2  shows all the emails for all the roles

Email
john.doe@123.com
jane.doe@123.com

 

Table 3 Has the user roles

Role IDRole Description 

PM

Project Manager
PCProject Coordinator
ADAdmin

 

I need to extract the email addresses from Table 2 and need it to populate next to the project manager name in Table 1 and filter it by "Project Coordinator" from Table 3. 

So all the information are in separate tables.

 

the tables dont have any values that you can use to create relationships between them either. I also have to do this in DAX because we are using a live connection and all the power query options are diabled. 

Please help! 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @aaa222 

 

You can try the following methods.

Column:

Project Manager = LEFT([Email],4)&" "&RIGHT(LEFT([Email],8),3)

vzhangti_0-1651027211754.png

Column names cannot be quoted as data, so use text instead.

Role ID = 
LOOKUPVALUE('Table 3'[Role ID],'Table 3'[Role Description ],"Project Manager")
Email = 
LOOKUPVALUE('Table 2'[Email],'Table 2'[Project Manager],[Project Manager])

vzhangti_1-1651027299967.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @aaa222 

 

You can try the following methods.

Column:

Project Manager = LEFT([Email],4)&" "&RIGHT(LEFT([Email],8),3)

vzhangti_0-1651027211754.png

Column names cannot be quoted as data, so use text instead.

Role ID = 
LOOKUPVALUE('Table 3'[Role ID],'Table 3'[Role Description ],"Project Manager")
Email = 
LOOKUPVALUE('Table 2'[Email],'Table 2'[Project Manager],[Project Manager])

vzhangti_1-1651027299967.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

aaa222
Frequent Visitor

I need the lookup to pull the project coordinators email address next to me PM name in the table.

tamerj1
Super User
Super User

Hi @aaa222 

what would be the expected results in this case? On which basis?

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!