More Excel-Style Calculations

Friday Demos · September 22, 2023 · 8:25

Transcript

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

  1. I love how Jamie tried to get off and just trend lines there I feel like I should show the calc stuff since uh it's already been previewed yeah let me stream screen one sec I think it's this one um okay uh so as you may have seen a little bit um the calc window up here has changed a bit um for a while it was just like a content editable uh spam and now it's a little bit more of an IDE like experience so if you start typing you get the you know uh auto complete in here um and let's see if we do like I don't actually need the T function here um but like I can come back and I can get the

  2. definitions for these uh in popovers so it gives me a little more information we're considering putting I was talking to Colin yesterday about putting maybe like actual documentation links and stuff in here because this is an HTML um pop-up that I'm popping up here so we could put whatever we want in there to really help accelerate people um but then we also have the auto suggest so this is pretty capable um and you know if I realize I messed up here and didn't add the little bit of a space there um then you know I can pretty easily pop in and rewrite that calc we're still popping over this window for legacy reasons since obviously like these two live side by side for now but

  3. um you can see what it's writing under the hood which is kind of cool and it's stuff that I wouldn't want to have to write by hand compared to how easy it was to write it there um the next thing to show is this is something that Stephen and I got working over the um off-site so uh you can now do um like spans between columns this is almost exclusively Steven's work I just made the parsing here function but so if I do like B1 through C5 that would be like the 69 here through this 127 here and it defines a rectangle around that bit of data so if I submit that you'll see that it starts with 69 here and then we've got the

  4. 92 14 Etc all the way down and then we also have the next column down to the 127 so the 15th 86 Etc so this is all of the data in this rectangle um and then you know if I wanted to take that and say like Summit then I should be able to do that and I can get the sum of like us a rectangle of the data um and get that as a single number so that's a pretty big piece of the functionality of excel like knocked out there along with all the functions and stuff we have we have a pretty like well-functioning calculation language here where you can actually like you will lock and it's pretty useful and um so like really from

  5. now I think a lot of what we're going to be doing is getting like the interactions feeling nice and everything but it's it's pretty fully formed at this point it's awesome Richard I would love to put a little like um like a little menu thing in there so you can see the list of functions so people can like so you don't have to like type ahead to know them oh yeah um so if I was to hit uh control space in here then I can just get them uh get the list oh awesome yeah it would be awesome just to be able to see that and then I love how I think it's six dollar sheets does like when you like hover over them or

  6. you have them over it will give you a little bit of like detail like the like the docky bits about like this is what it does it take to this and that and this is so awesome yeah and we literally link it can we link it to the Excel docs for Collins that's what we talked about yeah yeah it's like sweet the other thing that'd be nice is that is a categorical list rather than alphabetical list all all the yeah yeah spring con manipulation functions together Etc yeah some better UI around what functions are available but they are all increased you you showed that example where you pulled up the edit and I know obviously that seems like that's a area that we're gonna have

  7. to refine do we have a vision in terms of like are we gonna give access to both the like Excel like syntax and the underlying Omni syntax or are we going to try to just emphasize the Excel syntax like do we have a view there yet this probably isn't a question for me but I do assume that we're going to want to let people write calculations in pure SQL as well I did I don't think so really I don't think that we should let people do the table stuff in any sequel at all um we're going to explore like maybe there's a toggle that you can make it really explicit but some of these functions will actually collide with SQL and so and my preference

  8. would be like table is table and sequel is equal and maybe there's a way to say like I want to write SQL over this table that we make easier but I think not having to think about like that Collision ever and just being like I'm in Excel mode post process but we're gonna have to figure that kind of stuff out I think and of course I'm talking about our like the semantics of some are slightly different in Excel versus SQL Count versus Count a I think is my favorite like account in in SQL we think like what which things have values count in Excel counts numerics and count a counts values and like uh numeric or non-numeric like they're literally different functions and we need

  9. this to be like I want people thinking Excel when they're in the table um like similarly like replace in SQL is different than replaced in Excel which looks more like I can't remember substitute or something like that in SQL either way like there's collision and I would prefer if it was like strict Excel strict sequel though maybe there's some way to invoke like I want to write SQL over the table where people want to change stuff and and like the this are to the Dual like editing process two could very easily be something like we've got the custom editor on the right you know custom field editor on the left-hand side where you write SQL exclusively SQL or maybe we expose yaml at some point

  10. there too which we've talked about or the you know inline table editing you know what what send it today but like could be in line you know column column definition or something like that could be could be natural and I do think we want to make it really like it's a it's a differing use case we do we sort of don't want to confuse the user but also too I'm so insanely excited about this this is incredible like this is just game changing from an analytics perspective there's like there's no better self-serve experience than Excel this is incredible yeah maybe a question on that delineation between the sequel and the calcs does that mean that that's probably something we might permission on as well because

  11. I could see people wanting to do the the calc version and not the SQL version so yeah yeah so I I don't think we ever want to block anyone from doing post-processing the table that can write queries so like no permission on doing Excel stuff if we let people write open-ended SQL on things I think that goes into like our secretly style permissions yeah is another way of saying that like even if you only have view level access which is literally like the the least access you can have to something you can still write calcs assuming that you can construct queries so okay viewers viewers can't make new stuff so but anyone that can make new stuff even if they can't make net new stuff

  12. from the database I think should be able to manipulate result sets in any way so like essentially if you can make a chart you should be able to make a calc because it's just like a direct interpretation of data that you already have access to and the reality is is that user if they want to do that they're just going to go to Tab and download and pull it into Excel or sheets anyways so