|
楼主 |
发表于 2022-11-19 20:02
|
显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
加个buffer可以实现需求,什么原理不了解
- let
- 源 = Table.FromRecords({
- [day = 1, Name = "Bob", Phone = "123-4567"],
- [day = 1, Name = "Jim", Phone = "987-6543"],
- [day = 1, Name = "Paul", Phone = "543-7890"],
- [day = 1, Name = "Bob", Phone = "123-4567"],
- [day = 1, Name = "Jim", Phone = "987-6543"],
- [day = 2, Name = "Paul", Phone = "543-7890"],
- [day = 2, Name = "Bob", Phone = "123-4567"],
- [day = 2, Name = "Jim", Phone = "987-6543"],
- [day = 2, Name = "Paul", Phone = "543-7890"],
- [day = 2, Name = "Bob", Phone = "123-4567"],
- [day = 2, Name = "Jim", Phone = "987-6543"],
- [day = 3, Name = "Paul", Phone = "543-7890"],
- [day = 3, Name = "Bob", Phone = "123-4567"],
- [day = 5, Name = "Jim", Phone = "987-6543"],
- [day = 6, Name = "Paul", Phone = "543-7890"],
- [day = 6, Name = "Bob", Phone = "123-4567"],
- [day = 6, Name = "Jim", Phone = "987-6543"],
- [day = 6, Name = "Paul", Phone = "543-7890"]
- }),
- 排序的行 = Table.Buffer(Table.Sort(源,{{"day", Order.Descending}})),
- 删除的副本 = Table.Distinct(排序的行, {"Name"})
- in
- 删除的副本
复制代码
|
|