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
merkle09
New Member

List all records with unique id

Hello, 

I'm trying to provide a solution for the below in power query. I have two tables. 

1. Payments Table shows all of the expected payments/deliverable that will be due. 

2. Bank accounts table shows the bank account information related to each possible expected payment/deliverable that will occur in payments table. Some payments/deliverables will only have a transaction in 1 bank account, thus 1 rows of data in this tables and others may affect 2 (or more) bank accounts, thus they will have 2 (or more) rows of data in this table. 

 

For all of the payments/deliverables in table 1, I want to relist these payments/deliverables with the ALL corresponding bank account table records that match the ID, whether just 1 line (ID: CX01) or 2 or more lines (ID: CX02). 

 

This is a very small sample size is very small , but the same logic will apply to a much larger data set. 

 

The final output I would like will be something like the New Output Table

 

merkle09_0-1693014159775.png

 

 

 

 

1 ACCEPTED SOLUTION
ImkeF
Super User
Super User

Hi @merkle09 ,
joining both tables on their first 3 columns should do the job here:
Start with the first table (on the left side) and then join the second one to it, using ID, Company and Deliverable as the join columns.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

2 REPLIES 2
merkle09
New Member

This worked perfect, thanks!

ImkeF
Super User
Super User

Hi @merkle09 ,
joining both tables on their first 3 columns should do the job here:
Start with the first table (on the left side) and then join the second one to it, using ID, Company and Deliverable as the join columns.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

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
Top Kudoed Authors