我有一个查询来查找使用特定产品版本的不同用户ID以及他们的国家/地区,代理商名称,城市代码。 如何成功列出属性? 下面的查询没有过滤出唯一身份用户。
customEvents |其中customDimensions。[“产品版本”] ==“ 7.4” |时间戳之间的时间(datetime(“ 2018-12-01T00:00:00.000Z”).. datetime(“ 2018-12-02T00:00:00.000Z”)) |项目client_CountryOrRegion,user_Id,customDimensions。[“代理商名称”],customDimensions。[“伪城市代码”],customDimensions。[“产品版本”]
答案 0 :(得分:1)
更新:
在使用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"]
如有任何问题,请允许我。