NQLサマライズ

要約 ステートメントは情報を1つの結果に凝縮します。

構文

...
| summarize <新しい指標名> = <指標>.<集計関数>

デバイスごとのページビュー数の平均値を計算します。

デバイス
| web.page_views を 6月1日から6月7日まで指定
| num_navigations = number_of_page_views.sum() を計算
| 要約 average_num_navigation_per_device = num_navigations.avg()
average_num_navigation_per_device

115.9

過去7日間にアクティブなデバイスの数をカウントします。 count() 集約関数の場合、ルートテーブルのレコード数をカウントするためには、集約の前にフィールド名を省略できます。

過去7日間のデバイス
| 要約 number_of_devices = count()
number_of_devices

285

すべてのバイナリの合計サイズを計算します。

過去7日間のバイナリ
| 要約 total_size = size.sum()
total_size

611.3 GB

Last updated

Was this helpful?