在UI中进行Kusto分组

问题描述

如何在查询中创建下面显示的分组(不使用用户界面)。

enter image description here

解决方法

下面是2个不同的选项

1)

datatable(firstname:string,lastname:string)
[
    "John","Miller","John","Smith","Mike","Stone","Harry","Keller"
]
| summarize properties = make_list(pack("firstname",firstname,"lastname",lastname)) by firstname
firstname   properties
---------   ----------
John        [{"firstname":"John","lastname":"Miller"},{"firstname":"John","lastname":"Smith"}]
Mike        [{"firstname":"Mike","lastname":"Stone"}]
Harry       [{"firstname":"Harry","lastname":"Keller"}]
datatable(firstname:string,"Keller"
]
| summarize properties = make_list(strcat(firstname," ",lastname)) by firstname
firstname   properties
---------   ----------
John        ["John Miller","John Smith"]
Mike        ["Mike Stone"]
Harry       ["Harry Keller"]

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...