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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Arial12
Frequent Visitor

Inner join more than one column

Hello there experts,

 

Two tables don't have a direct relationship.

 

Table 1 has more rows than table2:

 

Itemnumber, Code, description, priority

2                      001        Aztek         1

3                      003        valve          2

4                      010         Base          3

5                      010         Base          1

6                      004         BPL            2

10                    001         IVV             1

 

Table2:

 

Code, description, Priority, specialneed

001         Aztek         1                AB

003          Vakve        2                J

010           Base          1             AL

001            IVV            1              ZX

 

 

I want to add a column in table 1: Specialneed with a value from Table2.Specialneed where code, description and Priority matches from both table if there is no match then leave the value in Table1 blank for Specialneed column.

 

 

After the match Table1 expected:

 

Itemnumber, Code, description, priority  Specialneed

2                      001        Aztek         1               AB

3                      003        valve          2               J

4                      010         Base          3               

5                      010         Base          1                AL

6                      004         BPL            2

10                    001         IVV             1               ZX

 

 

I don't want to do another calculated table, just want to add a column in tabl1.

 

Any help is appreciated.

 

Thanks,

 

 

 

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey,

 

you can create a calculated column in Table1 by using the function LOOKUPVALUE like so:

SpecialNeed =
LOOKUPVALUE(
'Table2'[specialneed]
,'Table2'[Code],'Table1'[Code]
,'Table2'[description],'Table1'[description]
)

Hopefully this is what you are looking for.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

1 REPLY 1
TomMartens
Super User
Super User

Hey,

 

you can create a calculated column in Table1 by using the function LOOKUPVALUE like so:

SpecialNeed =
LOOKUPVALUE(
'Table2'[specialneed]
,'Table2'[Code],'Table1'[Code]
,'Table2'[description],'Table1'[description]
)

Hopefully this is what you are looking for.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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