let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Transposed Table" = Table.Transpose(Source),
#"Merged Columns" = Table.CombineColumns(#"Transposed Table",{"Column1", "Column2", "Column3"},Combiner.CombineTextByDelimiter(":", QuoteStyle.None),"Merged"),
#"Transposed Table1" = Table.Transpose(#"Merged Columns"),
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table1", [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"EXAMPLE::LINE", Int64.Type}, {"EXAMPLE::DIGIT", Int64.Type}, {"EXAMPLE::NOM", type text}, {"EXAMPLE:TYPE:Auto", type text}, {"EXAMPLE:state:Auto", type text}, {"EXAMPLE:ZONE:Auto", type text}, {"code1:abs1:QTY", Int64.Type}, {"code2:resp:QTY", Int64.Type}, {"code3:ems:QTY", Int64.Type}, {"code4:DOA:QTY", Int64.Type}}),
#"Filtered Rows" = Table.SelectRows(#"Changed Type", each ([#"EXAMPLE::LINE"] <> null)),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Filtered Rows", {"EXAMPLE::LINE", "EXAMPLE::DIGIT", "EXAMPLE::NOM", "EXAMPLE:TYPE:Auto", "EXAMPLE:state:Auto", "EXAMPLE:ZONE:Auto"}, "Attribute", "Value"),
#"Extracted Text Between Delimiters" = Table.TransformColumns(#"Unpivoted Other Columns", {{"Attribute", each Text.BetweenDelimiters(_, ":", ":"), type text}}),
#"Renamed Columns" = Table.RenameColumns(#"Extracted Text Between Delimiters",{{"EXAMPLE::LINE", "LINE"}, {"EXAMPLE::DIGIT", "DIGIT"}, {"EXAMPLE::NOM", "NOM"}, {"EXAMPLE:TYPE:Auto", "TYPE"}, {"EXAMPLE:state:Auto", "STATE"}, {"EXAMPLE:ZONE:Auto", "ZONE"}, {"Attribute", "DIR"}, {"Value", "QTY"}})
in
#"Renamed Columns"