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

Consolidate data from multiple tables

I'm mapping a food production process using Power BI. I want to be able to track ingredients from start to finish, i.e.: I enter the Supplier Code of an ingredient and see which final products it ended up in.

The production line is about 10-16 steps and each step in the process is a StockRegistration table with a source and destination LotNr. Because each step can have multiple sources I'm unable to use normal Parent-Child techniques and I have resorted to chaining a simplified copies of the StockReg table via bridge tables with eachother. This results in a series of tables with all the LotNrs I need to see all the steps in the process. 

 

Question: How can I consolidate the LotNrs from all tables together in 1 single table?

When I use DISTINCT(UNION(TABLE1,TABLE2, etc)) it does not take into account that the tables are filtered by their predecessors and I just end up with a calculated table with all LotNrs in de StockReg table. 

 

 

Short version of the data model:

image.png

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

Hi @LeonPouwels ,

 

You could use Merge Queries in the video below.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @LeonPouwels ,

 

You could use Merge Queries in the video below.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
sturlaws
Resident Rockstar
Resident Rockstar

@LeonPouwels,

 

could you create a representative sample report, like the data model of you screenshot?

Also, in order to help you, it would be helpfull to see know what you want the output to like, e.g. a description of columns, or create a mock-up in excel.

cheers,

S

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.