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

retrieve one column after matching multiple column between two tables

I have tow table-a (ex : Column1- 10)  Table-b (Column 1-5(same value as columnA)  and two additional colum (Col X, ColY)

 

I need add Col- X after matching Table-a(column1-5) and  Table(column1-5). Note:  both tablea, table b  columns (1-5)has Many to many releation ship.

Table-a     1 2 3 4 5 A A A A B

                  1 2 3 4 5 A A A B B

Table -b       1 2 3 4 5 X1 Y1

                  1 2 3 4 5 X2 Y2

What is the best method to retirve Col X 1, X2, Y1, Y2 after matching 1-5 column of Table-a and Table-B

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

working fine. Concatnate matching column using query editor and used lookupfunction.

View solution in original post

3 REPLIES 3
pranit828
Community Champion
Community Champion

HI @Anonymous 

 

You can concatenage these 5 column in both table and create a relationship between these two.

Then arriving at the logic to get X1,Y1, X2 and Y2 will become easier.

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
Anonymous
Not applicable

Thanks for reply.  Concatnate only work with two strings and still not sure even after i merge column value (any other method) how this will work. Note: My table A- Update on real basis.  Table -B is static., so when new row added into table-A, i need to fetch corresponding value from Table B

Anonymous
Not applicable

working fine. Concatnate matching column using query editor and used lookupfunction.

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.

Top Solution Authors