More spreadsheet formula work

Colin Zima · Friday Demos · December 8, 2023 · 7:53

More new spreadsheet calculations - better type handling, null handling, and lots of other UX improvements

Transcript

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

  1. okay I'm just going to demo some Cal stuff anyway then I want to show you guys all the good stuff that's been happening oh yeah I did ask Kathy she is juggling kids right now so can't do it invited I'm going to forget some stuff so I'm going to bounce back and forth to this doc okay can everyone see a tab so a lot of the work now has been on um some of the stuff that is apparently more minor but is actually really major to the experience and I'm going to show you just some examples um of things that will seem trivial deal but are actually really really big deals so hold on let me shrink this so I can oh my gosh okay

  2. um so the first one is uh like we've talked a lot about null handling and blanks and things like that and databases don't like mixed column types they don't like strings and numbers together um but a lot of the work has been on making those sorts of things Pleasant so this is an incredibly common Excel style thing where if we go if this is less than 20 then empty else the number we're just trying to trim rows doesn't really matter why now it just works um so like in a database this kind of stuff tends to blow up and again this seems really trivial but it's actually amazing to be able to do stuff like this if I insert another column we can say if

  3. this equals quote quote I think this will work then 10 Z boom so now we can actually just start working with the table like it like it looks um and these sorts of things just make it so accessible to users so I don't need to really think about you know how stuff works how it doesn't work one other thing that you might have noticed there very common in Excel that when you're typing formulas uh you don't finish them uh I don't know why but I found that I actually never put a closing parenthesis on things uh and now that just works magically um and so like we're picking up a lot of these really small things that uh you sort of forget another one that

  4. we had was autocomplete in here was hitting functions now it doesn't do that it will go find columns um and it will even tell you the column that you're hitting as you go do that um so you know this isn't going to work anymore because A1 is not quote quote but if I want to go put it back to C it will tell me exactly what I'm calling it all just works um so we've done a lot of stuff there I know there's a whole bunch of other things in here um so like another one that we're going to hit is date comparisons we we tuned up a bunch of formulas um there's more stuff but just like we're really kind of picking up all

  5. those little edge cases and trying to make them amazing so um I think this is like a really great example where now you know I can have a Time series and I can maybe put another count of you know seniors in here now I can remove this oh bad demo but like you can start doing projections into the future now if you want right I could say you know let's see if this actually works filter oh gosh let's just clear this query and restart there will still be things to fix but now I can do something like uh let's add a filter on here age between 0 and 150 I go fill this column now oh does it not work I can't F okay well

  6. my Demo's not going to work very well okay I give up on that demo never mind we'll trim that I did build her aggression in here somewhere I think wait I I it but all of those numbers on the screen were between Z and 150 right uh they are but I was going to try to fill so I could do something like this okay Co like fure um and I just built this with like Cals essentially so like this is real data I built a line that goes into the future as we start having more Cals we can start doing kind of more fancy stuff like this but um you'll see like I've got lines down here because we didn't have this yet and so

  7. now you can see this user count is zero you can actually start instead of doing this one divided by zero we'll do a we'll go clean this up now so now I got blanks down there and now our chart does something funny you know it doesn't it's not always perfect we got to go figure this kind of stuff out though uh so I guess now it's stored as a string which makes our charting unhappy uh yeah I was gonna ask what's going on under the hood with those mix type columns I guess we got to go find out I mean it's gonna in that it it's doing a bunch of type it's trying to like find the type that will make the SE work so

  8. yeah in that case it found that the typee was string and it made it string and the squl was happy but I guess the viz was not not happy okay but if you if you mix strings and numbers you're getting strings out essentially yeah which is of course in in SQL the only rational answer yeah yeah so yeah I we got to trace some of this stuff all the way through to the viz that was the first time I've guess I've tried that um but like the feel it makes the feel of the library completely different and um it really makes it feel a lot more like the types of things that you do in Excel where you're trying to trim the first five rows

  9. of a a moving average or something like that it's just so simple now do we already have sort of the obvious second order effect of the the mix typing which is like if you have a a number that is typed as a string can you do numeric operations on it without you can um Let me let me just I'll try to do a coercion one right now uh okay let's make a new tab I'll grab age uh let's make this equals I think T makes it text so now this should be text if I sort it okay yeah so we can see this is sorting is text and is text and I can just do things like equals that plus one and now we're going

  10. to be back to numerics and theoretically this should sort like a numeric yeah so it just works and these are the things that that I just users don't understand and they don't ever want to understand they just see a thing that looks like a number and want to do math on it and it makes a gigantic difference for people when this stuff just works H does uh does the date stuff work with this as well or not yet sorry I uh the the next plan this is where I would need their help like we can go try right now I don't think that stuff is ready yet but the whole idea is we want to be able to do date plus one date minus one

  11. and we want to be able to do when that date equals the thing that we show to you um we can do things like that so I don't think it's quite there yet yeah I mean even being able to jump from text to numbers so not quite there yet but we will get date plus one date minus one date minus date and then we also need to be able to put them in if statements and have them just work so that's probably the last piece of stuff that we need to go figure out on the date side