我有一个查询,要找出使用特定产品版本的不同用户 ID 及其所在国家/地区、机构名称、城市代码。 如何成功列出特性? 下面的查询没有过滤掉唯一用户。
自定义事件 |其中 customDimensions.["产品版本"] == "7.4" |其中时间戳之间(日期时间(“2018-12-01T00:00:00.000Z”)..日期时间(“2018-12-02T00:00:00.000Z”)) |项目 client_CountryOrRegion, user_Id, customDimensions.["机构名称"], customDimensions.["伪城市代码"], customDimensions.["产品版本"]
最佳答案
更新:
使用tostring()方法时请使用别名。然后在项目命令中,使用别名而不是列名。
查看我的测试结果如下:
<小时/>在项目语法之前,请使用 summarize count() by client_CountryOrRegion, user_Id, customDimensions.["Agency Name"], customDimensions.["Pseudo City Code"], customDimensions.["Product Version"]
,然后使用project输出你喜欢的属性。
完成的代码如下:
customEvents
| where customDimensions.["Product Version"] == "7.4"
| where timestamp between(datetime("2018-12-01T00:00:00.000Z")..datetime("2018-12-02T00:00:00.000Z"))
| summarize count() by client_CountryOrRegion, user_Id, customDimensions.["Agency Name"], customDimensions.["Pseudo City Code"], customDimensions.["Product Version"]
| project client_CountryOrRegion, user_Id, customDimensions.["Agency Name"], customDimensions.["Pseudo City Code"], customDimensions.["Product Version"]
如果有任何问题,请告诉我。
关于azure - 如何在 Azure Application Insights Analytics 上执行不同的操作,然后从新的不同集合中投影几个变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54101883/