= Table.ExpandTableColumn(Table.AddColumn(更改的类型,"产品",each Table.FromColumns(if [产品信息]<>"68新配套-窗帘" then {{[产品信息]},{1}} else if [产品信息]="68新配套-窗帘" and [出厂价]>=200 then {{"窗帘"},{1}} else if [产品信息]="68新配套-窗帘" and [出厂价]<200 and Text.Contains([产品信息2],"片") and Text.Contains([产品信息2],"宽") then {{"窗帘导轨"},{Number.Round(Number.From(Text.Select(Text.Start([产品信息2],Text.PositionOf([产品信息2],"片")),{"0".."9"}))*Number.From(Text.Middle([产品信息2],Text.PositionOf([产品信息2],"宽")+1,Text.PositionOf([产品信息2],"*")-Text.PositionOf([产品信息2],"宽")-1)),2)}} else {{"窗帘配件"},{1}},{"产品名称","数量"})),"产品",{"产品名称","数量"}) |