按SUM的Google表格查询顺序

问题描述 投票:0回答:1

我正在尝试执行此查询:

=query(indirect($B$1), "select D, E, F, SUM(H) group by D,E,F pivot G order by SUM(H)",1)

看起来不错,但会导致错误:

无法解析功能QUERY参数2的查询字符串:NO_AGG_IN_ORDER_WHEN_PIVOT:H如果我尝试

=query(indirect($B$1), "select D, E, F, SUM(H) group by D,E,F pivot G order by H",1) the I get: 

无法解析功能QUERY参数2的查询字符串:COL_IN_ORDER_MUST_BE_IN_SELECT:H

=query(indirect($B$1), "select D, E, F, SUM(H) group by D,E,F pivot G order by D",1) works OK.  
  1. 如何通过SUM(H)订购?
  2. 是否知道如何通过SUM(H)来订购G的特定值(例如在Google工作表的数据透视表中?)>

我正在尝试执行此查询:= query(indirect($ B $ 1),“按D,E,F选择D,E,F,SUM(H)组,按SUM(H)选择D,E,F枢轴G顺序”,1 )看起来不错,但会导致错误:无法解析...

google-sheets-query
1个回答
0
投票
ORDER BY
© www.soinside.com 2019 - 2024. All rights reserved.