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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
quinla01
Advocate I
Advocate I

Add Column - Map ID to Value

Hi All, 

 

Hoping this is fairly simple. I have single table as shown below (real table has 1000's of rows)

 

Q1.JPG

 

I'm not interested in "Manager ID". I want manager name as per below. 

 

Q2.JPG

 

Any suggestions? The logic is something along the lines of

  • Get manager ID from column 3
  • If it's null do nothing. 
  • if it's not null then find ID in column 1 and retrun employee

 

Thanks

 

 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @quinla01 

You could use LOOKUPVALUE Function to create a calculate column as below:

Manager = IF(ISBLANK('Table'[Manager ID])=FALSE(),LOOKUPVALUE('Table'[Employee],'Table'[ID],'Table'[Manager ID]))

Result:

6.JPG

 

Best Regards,

Lin

 

Community Support Team _ Lin
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

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @quinla01 

You could use LOOKUPVALUE Function to create a calculate column as below:

Manager = IF(ISBLANK('Table'[Manager ID])=FALSE(),LOOKUPVALUE('Table'[Employee],'Table'[ID],'Table'[Manager ID]))

Result:

6.JPG

 

Best Regards,

Lin

 

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

That worked a charm. Many Thanks. 

 

Out of interest, do you know how this would be done from the query editor rather than in report view? 

 

Thanks

 

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.