Суммирование воронок по customDimensions в Azure Log Analytics - PullRequest
0 голосов
/ 18 марта 2019

Я сделал воронку в 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 "])" в конце. Можно ли вообще сделать в этом случае?

...