Return only one random row
IntuneDevices
| summarize take_any(*)
Return only one random row with specific columns
IntuneDevices
| summarize take_any(DeviceName, TimeGenerated, DeviceId)
Use with by, returns a random row for each distinct value from that column
IntuneDevices
| summarize take_any(DeviceId, OS, CompliantState) by DeviceName