Forum Discussion

Samuel White's avatar
Samuel White
Copper Contributor
Mar 27, 2018
Solved

Using "bin" with dcount to get the distinct number of computers

I’ve recently started implementing OMS for my organization and I’ve been making decent progress thanks to the online docs. I was happy to come across this forum.   I’ve hit a block and was hoping...
  • Hi

    I am not sure if I understand what exactly you want to achieve but wouldn't something like this be solution to your request:

    Perf
    | where CounterName == "% Processor Time"
    | summarize AggregatedValue = avg(CounterValue) by Computer, bin(TimeGenerated, 10m)
    | sort by AggregatedValue desc
    | where AggregatedValue > 90 | summarize AggregatedValue = dcount(Computer)

    If this is not what you want can you explain how you want to use dcount as the above uses both bin and dcount.