- let
- 源 = Folder.Files("C:\Users\dongj\Desktop\1"),
- 删除的其他列 = Table.SelectColumns(源,{"Content"}),
- 已添加自定义 = Table.AddColumn(删除的其他列, "自定义", each Excel.Workbook([Content])),
- #"展开的“自定义”" = Table.ExpandTableColumn(已添加自定义, "自定义", {"Name", "Data"}, {"Name", "Data"}),
- #"展开的“Data”" = Table.ExpandTableColumn(#"展开的“自定义”", "Data", {"Column1", "Column2", "Column3", "Column4", "Column5", "Column6", "Column7", "Column8", "Column9", "Column10", "Column11", "Column12", "Column13"}, {"Column1", "Column2", "Column3", "Column4", "Column5", "Column6", "Column7", "Column8", "Column9", "Column10", "Column11", "Column12", "Column13"}),
- 删除的列 = Table.RemoveColumns(#"展开的“Data”",{"Content"}),
- 提升的标题 = Table.PromoteHeaders(删除的列, [PromoteAllScalars=true]),
- 更改的类型 = Table.TransformColumnTypes(提升的标题,{{"【生意参谋平台】WIRELESS商品关键词效果分析2019-0", type text}, {"关键词", type text}, {"平均搜索排名", type text}, {"曝光量", type text}, {"点击次数", type text}, {"点击率", type text}, {"浏览量", type text}, {"访客数", type text}, {"人均浏览量", type text}, {"跳失率", type text}, {"支付买家数", type text}, {"支付商品件数", type text}, {"支付金额", type text}, {"支付转化率", type text}}),
- 筛选的行 = Table.SelectRows(更改的类型, each ([平均搜索排名] = "-"))
- in
- 筛选的行
复制代码 |