Forum Discussion
endakelly
Mar 27, 2020Brass Contributor
Split visualisation in workbook
I'm working on a workbook/dashboard and I have this query which should show in a bar or area chart successful and failed logins by client app. SigninLogs | where TimeGenerated > ago(7d) | wher...
- Apr 01, 2020
How about splitting the count() ?
SigninLogs | where TimeGenerated > ago(30d) | where isnotempty(ClientAppUsed) | extend Result= iff(ResultType ==0 ,"failure" ,"success" ) | summarize fail=countif(Result=="failure") , success=countif(Result=="success") by ClientAppUsed
endakelly
Apr 01, 2020Brass Contributor
Thanks for the reply CliveWatson
That does work but it's not really what I'm after. Ideally I'd have a stacked chart so we could see the proportion of sign ins that were successful or failed versus the total.
It's very odd that the visualisation works in LA but not in the workbook.
CliveWatson
Apr 01, 2020Former Employee
How about splitting the count() ?
SigninLogs
| where TimeGenerated > ago(30d)
| where isnotempty(ClientAppUsed)
| extend Result= iff(ResultType ==0 ,"failure" ,"success" )
| summarize fail=countif(Result=="failure") , success=countif(Result=="success") by ClientAppUsed
- endakellyApr 02, 2020Brass Contributor
That's done it CliveWatson. Thanks!