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! Learn more

Reply
Anonymous
Not applicable

undefined

Hi All,

I have two tables, Project table and User table. I have to fetch the name of the project manager using DAX exp.

 

Below is the table structure:

 

Project table

Project_ID    Name           Manager_Id       

1                  Aladeen       10

2                  Pointy           2

 

User table

User_ID       Name 

1                 Boss

2                 Baby

10               Musk

 

 

Now, I have to create to measure/column in the Project table with DAX which gives me the names of users from the second table.

P.S. Both the tables are in direct query mode.

 

Desired output-

Project table

Project_ID    Name           Manager_Id       Project_Manager

1                  Aladeen       10                     Musk

2                  Pointy           2                      Baby

 

How can I achieve this in DAX? Any help is appreciated.

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please check the below. It is for creating a new column.

 

Picture3.png

 

Project_Manager CC =
LOOKUPVALUE(User[Name], User[User_ID],Project[Manager_ID])
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
derrick777
Advocate I
Advocate I

Create a relationship between the 2 tables (User_Id and Manager_Id)

Then you can just create a table visualization without any other step.

If for any reason you need to have the user in the project table, you can create a calculated column:
'Project table'[Project_Manager] = RELATED ( 'User table'[Name] )

amitchandak
Super User
Super User

@Anonymous , You can join manager id with user id  of use table and get the name

 

 

if already joined on another column, create one more inactive join and use userelationship to create a measure

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please check the below. It is for creating a new column.

 

Picture3.png

 

Project_Manager CC =
LOOKUPVALUE(User[Name], User[User_ID],Project[Manager_ID])
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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