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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.