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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Brianoreilly
Helper II
Helper II

DAX Vlookup using secondary columns

Hi All,

 

I have a question with respect to something similar to a Vlookup in DAX.

 

I have two tables. One is a Projects Table and the other is  Contact Table.

The Projects Table and Contact Table are relatable via the Project Manager ID in Projects Table and User ID in Contact Table.

 

What I want to do is add a column from the Contact Table (Full User Name) into the Projects Table and call this 'Project Manager Name'.

I can do this in SQL and Excel, but DAX has me beaten.

 

I have tried a tonne of functions such as 'LOOKUPVALUE', but to no avail.

I would greatly appreciate help on this, as the tables are based on Salesforce, which seems to use IDs instead of values for all referencing between tables.

 

Thanks in advance,

Brian.

 

2 ACCEPTED SOLUTIONS
Vvelarde
Community Champion
Community Champion

@Brianoreilly

 

Hi, In Projects Table add a New calculated Column

 

Project Manager Name = RELATED(Contacts[Name])

 

And Will Work




Lima - Peru

View solution in original post

@Brianoreilly

 

You can Use "USERELATIONSHIP" to active the inactive relationship.

 

 




Lima - Peru

View solution in original post

5 REPLIES 5
Vvelarde
Community Champion
Community Champion

@Brianoreilly

 

Hi, In Projects Table add a New calculated Column

 

Project Manager Name = RELATED(Contacts[Name])

 

And Will Work




Lima - Peru

Hi,

 

Thanks for the help earlier.

I have the related function working, but now I have another questions.

 

On the Project Table, there is a "Project Manager" & a "Programme Manager", both of which use Contact IDs to reference the contact table to find the name. 

 

If I create a relationship between, Project Manager ID and Contact ID and use the related function it works with no problem.

But when I add a relationship between the Programme Manager ID and Contact ID, it chooses the active relationship.

 

To pull in the names for both columns, is there anyway other than duplicating the contact table, so Programme Manager can use the Original & Project Manager can use the duplicate for example.

 

Appreciate the help.

 

Thanks,

Brian.

 

 

 

@Brianoreilly

 

You can Use "USERELATIONSHIP" to active the inactive relationship.

 

 




Lima - Peru

Thanks again 😄

 

Appreciate the help.

Thanks man!

Did the trick 🙂

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors