我尝试将 excel 查询转换/转换为谷歌表格。
这是来自excel的代码:
let
Source = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type any}, {"Column2", type any}, {"Column3", type any}, {"Column4", type text}, {"Column5", type text}, {"Column6", type text}, {"Column7", type any}, {"Column8", type any}, {"Column9", type any}, {"Column10", type text}, {"Column11", type text}, {"Column12", type text}, {"Column13", type text}, {"Column14", type any}, {"Column15", type any}}),
#"Promoted Headers" = Table.PromoteHeaders(#"Changed Type", [PromoteAllScalars=true]),
#"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"Test1№", Int64.Type}, {"test2", type any}, {"test3", type datetime}, {"test4", type text}, {"test5", type text}, {"test6", type text}, {"test7", type datetime}, {"test8", Int64.Type}, {"test9", type number}, {"test10", type text}, {"test11", type text}, {"test12", type text}, {"test13", type text}, {"Column14", type any}, {"Column15", type any}}),
#"Sorted Rows" = Table.Sort(#"Changed Type1",{{"test1", Order.Ascending}, {"test3", Order.Descending}}),
#"Changed Type2" = Table.TransformColumnTypes(#"Sorted Rows",{{"test3", type date}}),
#"Removed Duplicates" = Table.Distinct(#"Changed Type2", {"test1"})
in
#"Removed Duplicates"
我需要: Col 日期需要排序最后一个日期 在 Test1 中删除重复项 在工作表 2 中复制数据
提前致谢。