Sum distinct, average distinct (launched)

Steven Talbot · Friday Demos · July 12, 2024 · 1:59

Sum distinct and average distinct in the data model - now users can flexibly aggregate over non-primary keys

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. add the some distinct on average distinct on only into AML it's not in the UI because you'd have to have an affordance to choose what you were making something distinct on and that just seemed kind of more than we wanted to build for a relatively obscure feature uh but it's basically taking our symmetric Aggregates which always take some value and make it distinct on the primary key of the table instead you can say take some value and make it distinct done whatever so in my D data it was hard to think of what actually that would be useful for so I made this State score it's like if it starts with C it's a great state otherwise not so great uh and then add did

  2. some did some so like that is you can't just directly sum that distinct because states have the same score if you want to sum it across states you have to sum the score on distinct on State and here is it working um someone immediately tried it after I released it and pointed out that I totally flubbed it and forgotten to make it work in a reference um so that works too as of this morning uh so yeah it's just it's just using the same logic that's been in there for a while the do symetri gu gets to do this other kind of thing Stephen I noticed it was calling just State and quotes is that a field reference or a that's that's no that's literally

  3. me being too lazy to type in dollar curly when I'm typing in okay can you just type in dollar curly just so I can we have an example of it we have just what it would look like yeah yeah yeah this is this is best practice for sure people watching this video don't don't be like me um thank you yeah