排序查询数据透视 Table - Google 工作表

Sort Query Pivot Table - Google Sheets

我正在尝试对查询数据透视表 table 进行排序,以便列应按降序排列。

我试过:=QUERY({Data!A1:C24},"Select Col1, Sum(Col2) group by Col1 pivot Col3 order by Col1 Desc, Col2 Desc") 但它告诉我 "COL_IN_ORDER_MUST_BE_IN_SELECT: Col2"

除了行之外,还有没有办法对枢轴 table 的列进行排序?

这是一个示例 sheet:https://docs.google.com/spreadsheets/d/1W8T2BJvSRN_CMdTs1asONEWrDjT3c5yDTFRxh8mSh10/edit?usp=sharing

尝试:

=TRANSPOSE(QUERY(TRANSPOSE(QUERY({Data!A1:C24},
 "select Col1,sum(Col2)
  group by Col1
  pivot Col3
  order by Col1 desc")), 
 "order by Col1 desc", 1))