Totals for everything

Cathy Lennon · Friday Demos · November 15, 2024 · 7:29

Totals for everything! Now users can toggle between native totals (ungrouped aggregates), simple totals, min, max, and count on any field. This includes bring flexible totals to dimensions…

Transcript

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

  1. I've got one I can show sure um okay so thanks to Sarah for helping make this look much nicer than it did before um and Ariel and Richard for helping figure out how to do all this stuff and uh always Stephen for helping me figure out how to do everything um so this is related to totals uh one thing that's come up a lot recently has been users getting confused by like what value is being shown in the total Row for calculations um because we don't really do anything explicitly for that Row for Cel it's just like whatever happens to show up is going to be displayed um so in the case of like a constant calculation then you get that value and if it's

  2. has a measure as an input you see something related measure but sometimes it's just nonsense um so anyways that's been confusing to people so we wanted to do something to make that a little nicer um so we've been working on having some like controls for the totals down here um so like here are some examples of different types of calculations where like the thing that you display on the bottom might vary depending on the kind so like for this one we're just like concatenating the measure with the the dimension to show like you know whatever some kind of string so for this one you probably just don't want to show anything so now we have this like nice total calculation menu option here um so

  3. you can choose column formula just kind of does whatever is the pre-existing behavior um since this is a string you can choose the M or the max or just show nothing so like this is an example where you probably just don't want to show anything so we have like none for rank the default like what it shows currently for rank is just one because of the way the C goes so like for this one like I don't know what you'd want to show but like you can choose so like maybe the max to see like how many values are in there um this is another example where we just have like some number and so the default would have just been well for this one

  4. the default would have been null so like we just choose like average or whatever um so for Cals you can kind of like depending on the you know field type choose what type of aggregation you want to do on it um and then this actually just like Works more generally so like for a dimension like right now for totals like because we're grouping on them and it you know doesn't necessarily make sense to put a number in the total like we don't have totals for them um so now like for Dimensions you can see we have these options where like well default to showing nothing which is what we do now um but you can also choose like some other aggregation on them so like

  5. I don't know what you want for age like just to sum it up or something um so you see that there so like you're also able to sum over dimensions in the same way you can for Cals and then for measures you can see there's this like additional option so like the default is to do what we do currently in our total system which is just the like native aggregation because of the grouping sets for the definition of the measure but if like for some reason that's not what you want you can choose like one of the other types too um so like I don't know you won't like the max value or something um you can change that too and just have that here

  6. and then actually if any of the Cals use this as an input they would also get updated um so there's that it there's still some work to be done to like finish it up I can show you subtotals like there's an issue here with sorting so it kind of works but the Sorting is a little messed up but like like the subtotal should be below it but like it should in theory also work for sub totals to show whatever you've chosen just got to flip these guys um same thing like for pivots and again there's some uh issues to work out there um but previously if we made this pivot like this is what would show up for the running total it'd be zero just

  7. because it's partition there um but that's that's probably not what you want so like for this one like probably what you want is whatever I guess Max is what you want if it's a running total and then that'll show you like the you know full total from the end um you can also you know again add the total onto the dimension as well or change this one if you want to um it's not like totally done yet there's still some work to be done for promotion and for getting subtotals and uh sorted right and I'm sure a million edge cases too um but just to show you since I know it's come up a bunch recently and at least we can have something to kind

  8. of point to customers that it's coming soon um to fix that paino so cool that's that's ridiculous no not to don't take this as talking bad about a competitor on the call or we could cut this but when we were all at looker we had this as an issue and it just sat there for like five years and we were all like guess we're just not going to fix that and it's going to be like mildly cruddy forever here we just are fixing it hooray yeah um I mean I there I think there's some other really interesting ux decisions we could make here too like a really simple example to uh call back my shout at Sav is sort of like why doesn't my Dimension

  9. sum up has come up it it comes up every single time with the new user is like there's no difference between going to a fact table and hitting a dimension and going to a fact table and magically turning that into a measure other than like if you know SQL that makes sense and for many people that does not make any sense at all the idea that like when you turn on totals we can flip on the sum of the Colum for Dimensions is madness like that is so good because you can just sidestep the complete conversation on it like then it gets into the Nuance of like do you actually want that or not but it is completely easy to understand like a sum of

  10. a dimension and if you've got a button to turn it off completely changes like the way the system works so it's it's just it's amazing the stuff that it's going to unlock for people I have a quick question it might be a little too in the weeds but um Kathy curious would does this issue additional queries I know I think like our with our old uh structure of totals it would basically use grouping sets to all still go through one be curious with the the different operations if we were able to do that or have to do some stuff differently no no additional queries um it's just doing like an extra layer on top of the totals with a window that's awesome