cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

New Column based on match of 2 fields in same table

I'm trying to do a match based on 2 criteria from within the same table.

 

e.g.

 

My table looks like: 

 

IDemployeeIDAffilliationAffilliationTypetitleFor
112Internal ServicesDivision 
25Health Care ProtectionUnit 
322ChiefTitleUnit
446Consumer ServicesDivision 
522Education & CommunicationsUnit 
619Human ResourcesDivision 

 

I want to add a column that looks for a match of the employeeID and AffilliationType based on employeeID and titleFor of the record.  The result would be:

 

IDemployeeIDAffilliationAffilliationTypetitleFortitleAffilliation
112Internal ServicesDivision  
25Health Care ProtectionUnit  
322ChiefTitleUnitEducation & Communications
446Consumer ServicesDivision  
522Education & CommunicationsUnit  
619Human ResourcesDivision  

 

Thanks in advance for any help or general direction for this.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: New Column based on match of 2 fields in same table

You could do this with the DAX LookupValue function

 

eg.

 

= LOOKUPVALUE(Table1[Affilliation], Table1[AffilliationType], Table1[titleFor], Table1[employeeID], Table1[employeeID])

View solution in original post

1 REPLY 1
Highlighted
Super User III
Super User III

Re: New Column based on match of 2 fields in same table

You could do this with the DAX LookupValue function

 

eg.

 

= LOOKUPVALUE(Table1[Affilliation], Table1[AffilliationType], Table1[titleFor], Table1[employeeID], Table1[employeeID])

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors