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
Marcus_S
Frequent Visitor

How can i add new columns from other table?

Hello,

 

I have a table A which needs to be extended by two columns.
The additional information is in Table B, but in different rows.
How would I have to create these columns?

 

Table A

NODecsriptionADD 1ADD 2
123456TestValue from Table B Typ A Value from Table B Typ B

 

Table B

NoTypValue
123456A000
123456B111

 

 

Thanks a lot

 

Marcus

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Marcus_S , In dax

 

MAxx(filter(Table2, Table1[No] = Table2[NO] && Table2[Type] ="A") , Table2[Value])

 

column 2

MAxx(filter(Table2, Table1[No] = Table2[NO] && Table2[Type] ="B") , Table2[Value])

 

 

In power query merge and Pivot

 

Merge Tables (Power Query) : https://www.youtube.com/watch?v=zNrmbagO0Oo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=16

 

Pivot Data(Power Query) :https://www.youtube.com/watch?v=oKByyI09Bno&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=12

View solution in original post

2 REPLIES 2
Marcus_S
Frequent Visitor

@amitchandak i used the dax solutions, and it works fine.

Thanks a lot

 

Marcus

amitchandak
Super User
Super User

@Marcus_S , In dax

 

MAxx(filter(Table2, Table1[No] = Table2[NO] && Table2[Type] ="A") , Table2[Value])

 

column 2

MAxx(filter(Table2, Table1[No] = Table2[NO] && Table2[Type] ="B") , Table2[Value])

 

 

In power query merge and Pivot

 

Merge Tables (Power Query) : https://www.youtube.com/watch?v=zNrmbagO0Oo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=16

 

Pivot Data(Power Query) :https://www.youtube.com/watch?v=oKByyI09Bno&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=12

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.