That should make it much easier then - see attached example. The M code is just:
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"ORDER#", "IP", "Line No.", "STYLE", "PO", "COLOR", "ORDER QUANTITY", "Unit Value $", "Rejection"}, "Attribute", "Value"),
#"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Other Columns", "Attribute", Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv), {"Department", "Type", "Index"}),
#"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Department", type text}, {"Type", type text}, {"Index", Int64.Type}}),
#"Pivoted Column" = Table.Pivot(#"Changed Type1", List.Distinct(#"Changed Type1"[Type]), "Type", "Value"),
#"Removed Columns" = Table.RemoveColumns(#"Pivoted Column",{"Index"})
in
#"Removed Columns"
Bookmarks