let
Source = Excel.CurrentWorkbook(){[Name="CSV_Import"]}[Content],
#"Split Column by Delimiter" = Table.SplitColumn(Source, "Column1", Splitter.SplitTextByDelimiter(";", QuoteStyle.Csv)),
#"Promoted Headers" = Table.PromoteHeaders(#"Split Column by Delimiter", [PromoteAllScalars=true]),
#"Removed Columns" = Table.RemoveColumns(#"Promoted Headers",{"Quantity1", "Quantity bad1", "Rejected1", "Total area1", "Order number2", "Part number2", "Quantity2", "Quantity bad2", "Rejected1_1", "Total area2", "Order number3", "Part number3", "Quantity3", "Quantity bad3", "Rejected1_2", "Total area3", "Order number4", "Part number4", "Quantity4", "Quantity bad4", "Rejected1_3", "Total area4", "Following alarm exist:"}),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Removed Columns", {"Date", "Date in", "Date out", "Flightbar number", "Process number", "Order number1", "Part number1"}, "Attribute", "Value"),
#"Extracted Text Before Delimiter" = Table.TransformColumns(#"Unpivoted Other Columns", {{"Attribute", each Text.BeforeDelimiter(_, "_"), type text}}),
#"Added Index" = Table.AddIndexColumn(#"Extracted Text Before Delimiter", "Index", 0, 1, Int64.Type),
#"Reordered Columns" = Table.ReorderColumns(#"Added Index",{"Index", "Date", "Date in", "Date out", "Flightbar number", "Process number", "Order number1", "Part number1", "Attribute", "Value"}),
#"Integer-Divided Column" = Table.TransformColumns(#"Reordered Columns", {{"Index", each Number.IntegerDivide(_, 7), Int64.Type}}),
#"Pivoted Column" = Table.Pivot(#"Integer-Divided Column", List.Distinct(#"Integer-Divided Column"[Attribute]), "Attribute", "Value"),
#"Removed Columns1" = Table.RemoveColumns(#"Pivoted Column",{"Index", ""}),
#"Changed Type" = Table.TransformColumnTypes(#"Removed Columns1",{{"Time down", type time}, {"Time up", type time}})
in
#"Changed Type"
Bookmarks