SOLVED

KQL - make_set distinct

Copper Contributor

Hi everyone,

 

This may be simple however I've been unable to find a method or function to get my desired result. I may have missed something.

I want to summarize an event and use make_set to minimize the results.

I want something like make_set() but only distinct values.

What I have in mind is distinct_make_set(LoginInfo) and distinct_make_set(IPVTimeGenerated)

 

Desired summarize:

| summarize

LastestSignIn = arg_max(TimeGenerated,UserName),

EarliestSignIn = arg_min(TimeGenerated, UserName),

AttemptsBeforeIPV = countif(LoginInfo == "IPV activity after Login attempt"),

IPVTimeGenerated = distinct_make_set(IPVTimeGenerated),

LoginInfo = distinct_make_set(LoginInfo)

SignInCount = count() by

UserName, Activity

 

 

Thank you in advance!

 

3 Replies
best response confirmed by futureninja (Copper Contributor)
Solution

@futureninja 

 

make_set() is already "distinct", its make_list that isn't? 

 

Clive_Watson_0-1679419878144.png

 

well, well... looks like I did indeed miss something major. Thanks!
Easily done ;)
1 best response

Accepted Solutions
best response confirmed by futureninja (Copper Contributor)
Solution

@futureninja 

 

make_set() is already "distinct", its make_list that isn't? 

 

Clive_Watson_0-1679419878144.png

 

View solution in original post