|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
把那些不必要的中文说明都改成对应的数值,像“每月”、“每季度”改成1、3等等,
PQ一样能轻松搞定,
- let
- Source = A,
- Installment = Table.AddColumn(RENT, "Plan", each let n= [Duration]/[Interval], instmt = Number.Round([Total]/n), plan = List.Accumulate({1..n-1}, {[Start]}, (s,c) => s & {Date.AddMonths(s{0},[Interval]*c)}) in Table.FromColumns({List.Transform(plan, each Date.ToText(_, "yyyy-MM")), List.Repeat({instmt},n)}, {"Pmt Date", "Amt"})),
- #"Expanded Plan" = Table.ExpandTableColumn(Installment, "Plan", {"Pmt Date", "Amt"}),
- #"Pivoted Column" = Table.Pivot(#"Expanded Plan", List.Distinct(#"Expanded Plan"[#"Pmt Date"]), "Pmt Date", "Amt")
- in
- #"Pivoted Column"
复制代码
|
|