INARRAY(d2,REVERSEARRAY(SORTARRAY(UNIQUEARRAY(D2[!0]))))
说明:先对要排名的数据进行去重,升序数组后再反序,找出数据在数组中的位置即排名
参考扩展后排序-https://help.fanruan.com/finereport10.0/doc-view-897.html
select
a.[ID],
a.[数据1],
ROW_NUMBER() OVER(order by a.[数据1] desc ) as 排名
from z_test as a
排名:https://help.fanruan.com/finereport/doc-view-2504.html?source=4