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

Summarize products and supplies

Dears,

I would appreciate opinions or suggestions on how I should approach the following situation:

I have a table with the composition (structure) of Products, that is, the Item ART01001 is made up of: 10pcs of INS01001, 20pcs of INS01002 and 5pcs of INS01003, etc.

In turn, an Cod_Father can be a Cod_Child of another product.

Cod_FatherCod_ChildrenQuantity
ART01001INS0100110
ART01001INS0100220
ART01001INS010035
ART01002INS010015
ART01002INS010033
ART01002INS0100410
ART01002INS010055
ART01003ART010011
ART01003INS010033
ART01003INS010042

 

Also I have another table that contains the quantity in stock of all goods in different warehouses.

 

SKUWarehouseIDStock
ART01001W112
ART01001W22
ART01002W25
ART01003W11
ART01003W25
ART01003W31
INS01001W1100
INS01001W250
INS01001W320
INS01002W120
INS01002W240
INS01002W35
INS01003W10
INS01003W2100
INS01003W3100
INS01004W150
INS01004W330
INS01005W135
INS01005W320

 

I would like to obtain the list of each product composition with the stocks of each part, as follows:

Captura de pantalla 2024-03-27 122920.png

 

What can you suggest to me?

 

Regards,

Jorge

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

Hi @JorgeConil ,

How did the last two lines of the expected output get there?
Check that this matches your expected output:

vcgaomsft_1-1711605785558.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly--How to provide sample data in the Power BI Forum--China Power BI User Group

View solution in original post

2 REPLIES 2
v-cgao-msft
Community Support
Community Support

Hi @JorgeConil ,

How did the last two lines of the expected output get there?
Check that this matches your expected output:

vcgaomsft_1-1711605785558.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly--How to provide sample data in the Power BI Forum--China Power BI User Group

Hi,

Thank you so much! Your example is very close to what I need.

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.