我在AI中创建了一个渠道(customEvent1到customEvent2),它为我提供了一个之前,之后的数字和百分比。但我想通过customDimension对其进行总结。
let allEvents=customEvents
| where timestamp between (datetime(2019-02-16T15:09:09.959Z)..datetime(2019-03-18T15:09:09.959Z))
| extend SourceType = 5;
let allPageViews=pageViews
| take 0;
let all = allEvents
| union allPageViews;
let step1 = materialize(all
| where name == "AddressCheck" and SourceType == 5
| summarize arg_min(timestamp, *) by user_Id
| project user_Id, step1_time = timestamp
| extend funnel_step= "1. AddressCheck");
let step2 = materialize(step1
| join
hint.strategy=broadcast (all
| where name == "ContinueToCheckoutButton" and SourceType == 5
| project user_Id, step2_time=timestamp
)
on user_Id
| where step1_time < step2_time
| summarize arg_min(step2_time, *) by user_Id
| project user_Id, step1_time,step2_time
| extend funnel_step="2. ContinueToCheckoutButton");
let 1Id=step1
| summarize total1=todouble(count(user_Id));
let 2Id=step2
| summarize total2=todouble(count(user_Id));
1Id
| union 2Id
| summarize finalTotal=sum(total2), initialTotal = sum(total1)
这不像在末尾添加“ by tostring(customDimensions [“ name”]))”那样简单。在这种情况下甚至可以这样做吗?