
Percentiles
The introduction of percentile measures for when the median isn't good enough.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
uh I have it's actually old but I don't think I it's more of it it's not very exciting but it's more of a PSA because it came up today with a customer and realized that uh I think no one knew about it um just that we added this percentile higher GP type stop me if we this was like a couple weeks ago but just uh it only right now is doable via the IDE um because it added has this extra parameter but it's just defined like this like any other aurate type percentile and then you have to actually put the percentile and there it is so like here's an example where the median is zero the percentile is hopefully more interesting yeah uh so and
actually then after doing that I realized that really we could put in the men menu with these cool submenus uh so was trying to hack that up right now but it didn't didn't get there uh but um maybe maybe later oh actually I guess another PSA uh again small thing this is the thing that I uh broke something for but uh broke something for Alysa but uh the thing that didn't break is uh there's just now we have this kind of slightly easier way to do uh or maybe it wasn't even really possible before um basically just year to date in the in the filters so it's already existed on the back end but just kind of putting it in the Picker so you can
do a beginning of this year to today um and I these are just the beginning of this year is just the same as zero years ago but you know humans I guess don't find that intuitive or whatever so this is a little little easier to discover hopefully boy so those the two little things random question does the percentile work across all dials uh yeah yeah um but that the that was even or when when we implemented median that was forever ago um yeah implemented in terms of percentile and yeah does it work well I don't know uh like for example SQL Server yeah does this strategy where you make an enormous group concat of all the values padded so that you don't truncate and then
you like slice into that giant string and pick one or two and average them together um uh but yeah ideally D databases would just have the percentile function but some don't or they all have it as a window function but some don't have it as an aggregate function for reasons not understood cool