DEV Community

Jonas Samuelsson
Jonas Samuelsson

Posted on

kusto trendlines

I recently stumbled upon an example for how to include "trendlines" in kusto queries that might be handy.

exceptions
| where timestamp > ago(90d)
| summarize c = log(count()) by bin(timestamp, 1d)
| as hint.materialized=true T
| extend _perc_25 = toscalar(T | summarize percentile(c, 25)),
         _perc_50 = toscalar(T | summarize percentile(c, 50)),
         _perc_75 = toscalar(T | summarize percentile(c, 75))
| render timechart
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay