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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Create a calculated column using join

Hi,

 

I have the 2 tables as following.

Table1:

DepartmentID
A10
B11
C12
D13
E14

 

Table2:

 

DepartmentID
A10
 10
 10
 10
 11
 11
 11
 12
 12
 12
 12
 13
E14

 

Create a new column Department1 in a Table2

Using dax query how to create a column using join 

Expect as following output:

Table2:

DepartmentIDDepartment1
A10A
 10A
 10A
 10A
 11B
 11B
 11B
 12C
 12C
 12C
 12C
 13D
E14E

 

 

Thanks in Advance,

Priviya .P

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

Hi @Anonymous ,

 

To create a calculated column as below.

 

depth2 = LOOKUPVALUE('Table'[Department],'Table'[ID],'Table (2)'[ID]) 

Capture.PNG

 

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

View solution in original post

1 REPLY 1
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

To create a calculated column as below.

 

depth2 = LOOKUPVALUE('Table'[Department],'Table'[ID],'Table (2)'[ID]) 

Capture.PNG

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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