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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors