- Table.AddColumn(t1, "自定义", (t)=> if List.Max( Table.SelectRows(t1, each [渠道] = t[渠道] and [结束日期] < t[结束日期])[结束日期])+ #duration(1,0,0,0) = null then t[投放日期] else List.Max( Table.SelectRows(t1, each [渠道] = t[渠道] and [结束日期] < t[结束日期])[结束日期])+ #duration(1,0,0,0) )
复制代码
添加1个步骤,将上述 t1改为你的table名称 |