新手仔仔学PQ
组写的第一个函数,满足判定条件后再去统计个数
在编辑器中
输入:
=List.Transform(Record.ToList(_),each _)
注意大小写
开始判定:
=List.Transform(Record.ToList(_),each if _>300 then _ else null)
上图有出现Error,因为汉字原因
再判定
=List.Transform(Record.ToList(_),each try if _>300 then _ else null otherwise null)
然后开始计数:
=List.NonNullCount(List.Transform(Record.ToList(_),each try if _>300 then _ else null otherwise null))
最终结果:第一行大于300的有3个
萌新学PQ,感谢大家