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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Combine results of two columns into one Lookupvalue

Dear Community,

 

the goal is to write a new calculated column which combine results of two other columns.

 

I describe the logic for understanding:

 

my table contains employee numbers and names of the respective supervisor of an employee.

There are two further columns in this table for a supervisor of an employee number, which cannot both be filled at the same time.

I want to enter the name of the supervisor in a new column per lookupvalue for each employee number.


Example:

Employee NumberSupervisor_ASupervisor_B
1Simonnull
2nullTom
3nullBrad


You can see that only one supervisor column is filled, A or B.

So in my new calculated column I want to lookupvalue for employee 1 in the column supervisor_A and write Simon in it, but for employee 2 and 3 I want to look in the column supervisor_B and write Tom and Brad respectively.

 

Thank you for your support.

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 
What would you do if both names are available? As per current sample, simply concatenate

Supervisor =
TableName[Supervisor_A] & TableName[Supervisor_B]

 both names

 

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Anonymous 
What would you do if both names are available? As per current sample, simply concatenate

Supervisor =
TableName[Supervisor_A] & TableName[Supervisor_B]

 both names

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.