我有以下查询:
customEvents
| summarize count(datepart("Second", timestamp) )
by toint(customMeasurements.Latency)
这是计算一分钟后的秒数,并按整数Latency
对其进行分组。
如何通过这些列添加order by
运算符来订购?
答案 0 :(得分:0)
为了做到这一点,你需要为列添加别名。
使用column_alias=
前缀值来执行别名列。
customEvents
| summarize Count=count(datepart("Second", timestamp) )
by Latency=toint(customMeasurements.Latency)
然后我们可以通过别名引用列:
customEvents
| summarize Count=count(datepart("Second", timestamp) )
by Latency=toint(customMeasurements.Latency)
| order by Latency asc nulls last