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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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

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...

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

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.