let
源 = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
更改的类型 = Table.TransformColumnTypes(源,{{"料号", type text}}),
已添加自定义 = Table.AddColumn(更改的类型, "自定义", each Text.BeforeDelimiter(Text.BeforeDelimiter([料号],","),"-",{0,RelativePosition.FromEnd})),
已添加自定义1 = Table.AddColumn(已添加自定义, "自定义.1", each Text.Split(Text.Replace(Text.Middle([料号],Text.Length([自定义]),9999),"-",""),",")),
#"展开的“自定义.1”" = Table.ExpandListColumn(已添加自定义1, "自定义.1"),
已添加自定义2 = Table.AddColumn(#"展开的“自定义.1”", "自定义.2", each [自定义]&"-"&[自定义.1])
in
已添加自定义2 |