我想在地图中可视化一些数据,因此我使用了工作簿。我没有在查询中设置时间范围,因为时间范围应该可以在仪表板中配置。将特定图块固定到仪表板后,更改时间范围时地图不会更新。当我更改工作簿中的时间范围时,它按预期工作。
请找到我在工作簿中尝试过的 Kusto 查询:
let mainTable = union customEvents
| extend name =replace("\n", "", name)
| where iif('*' in ("*"), 1 == 1, name in ("*"))
| where true;
let queryTable = mainTable;
let cohortedTable = queryTable
| extend dimension = client_CountryOrRegion
| extend dimension = iif(isempty(dimension), "<undefined>", dimension)
| summarize hll = hll(itemId) by tostring(dimension)
| extend Events = dcount_hll(hll)
| order by Events desc
| serialize rank = row_number()
| extend dimension = iff(rank > 5, 'Other', dimension)
| summarize merged = hll_merge(hll) by tostring(dimension)
| project ['Country or region'] = dimension, Counts = dcount_hll(merged);
cohortedTable
您对此的意见非常有帮助。提前致谢