Power Query如何使用循环遍历?
= List.Transform({1..10},each _*2)
= List.Transform({1..10},each [本身 = _,乘以10 = _*10,累加到当前值=List.Sum({1.._})])
= List.TransformMany({1..10},each {1..15},(x,y)=>Text.Format("#{0}栋#{1}层",{x,y}))
= List.Accumulate({1..10},0,(x,y)=>x+y)
=Table.FromColumns(List.Accumulate({10,24,22,39,80,12,5},{{},{}},(x,y)=> if y <20 then {x{0}&{y},x{1}} else {x{0},x{1}&{y}}),{"小于20","大于等于20"})
= List.Generate(()=>10,(x)=>x>0,(x)=>x-1,(x)=>Text.Format("倒数#{0}项",{x}))
本文由“壹伴编辑器”提供技术支持
赞 (0)