Forum

Bill of Material - ...
 
Notifications
Clear all

Bill of Material - Assign each component to a top level

3 Posts
2 Users
0 Reactions
283 Views
(@timk9189)
Posts: 2
New Member
Topic starter
 

I am trying to manipulate an indented bill of material report to identify what the top level assembly is for each component.  I am able to do it in VBA but need it to be done within Power Query... any help would be appreciated. The Macro is really simple and is included.

In the attachment, I start with A, B and C.  Level is the BOM indention level and I am trying to assign the cell (E) "Top Level" with the Component Part Number that is on level 1 above it. I added the output I need in E.  

The real file is about 7000 lines long with indentions up to 10 deep.

Thanks

Tim K

 
Posted : 16/08/2020 10:46 am
(@timk9189)
Posts: 2
New Member
Topic starter
 

figured it out

added an index

then

= Table.AddColumn(#"Added Index", "Top Level", each if [Level] <= 1 then [Component Part Number] else null)

and then did a fill down..

 
Posted : 16/08/2020 2:36 pm
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Tim,

Thanks for posting your solution.

Regards

Phil

 
Posted : 16/08/2020 7:50 pm
Share: