我的起始表类似于以下
Person 1, 75
Person 2, 48
Person 3,
Person 4, 82
Person 5,
Person 6, 93
...
我现在尝试在下面的查询中包含一个“where”语句来排除没有数值的实体。这就是我目前要向我展示上面设置的最低5个值,它到目前为止工作
=QUERY('DPS Transpose Tables'!D1:E29;"select D, max(E) group by D order by max(E) asc limit 5 label max(E) ''";0)
我怎样才能添加这样有用的东西
=QUERY('DPS Transpose Tables'!D1:E29;"select D where (E<>"" OR Is not NULL), max(E) group by D order by max(E) asc limit 5 label max(E) ''";0)
提前感谢一百万人!
答案 0 :(得分:2)
尝试'E&gt; = 0'这样的地方:
=QUERY('DPS Transpose Tables'!D1:E29,"select D, max(E) where E >=0 group by D order by max(E) asc limit 5 label max(E) ''",0)
答案 1 :(得分:0)
您也可以尝试'WHERE IS NOT NULL'
有时我发现使用&gt; = 0无法获得所需的结果
=QUERY('DPS Transpose Tables'!D1:E29,"select D, max(E) where E IS NOT NULL group by D order by max(E) asc limit 5 label max(E) ''",0)
答案 2 :(得分:0)
其中E <>''