
More Calcs AI witchcraft - population calcs (launched)
A mind-blowing demo of calcs AI for pulling public data, here population data to rebase metrics
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I have a fun little workflow demo that col mentioned earlier um so I was playing around with a bunch of little demos for our snowflake booth and I wanted to try to stitch together some of our like flashiest features so I was trying to come up with a flow for Json extract Cals Ai and xook up um so I started from our order item stable grabb the Json uh obviously extracted it pull the state in and then the Cals AI thing that Colin mentioned um was kind of crazy it took me a few tries to get right but let me see if I can remember the exact syntax it's using an if statement return the population of every American state this one took a little
bit to run but um I feel like I got it working kind of consistently there we go I wrote this very long if statement um I'm not sure if people actually find that useful but I thought it was cool that I could write all that and col and help promp me with like using an ifs statement is helpful and then I pulled that into uh this tab where I then did X look up um and then grabbed the state populations this and then you could do some sort of like market share calculation so like this by this obviously that's not like an actual market share but um kind of gets the point across so that'll be part of the demos that we're playing on at
our s fake booth who's not gonna like that where does it get the num it's crazy you get like free reasing of all metric to population by just asking does it just pull the population numbers from the internet no it's just it's these things are just super intuitive right so like it just kind of like knows it's like if you were to ask like you know what's 5 plus three and you don't you don't actually do you just like you just spit the answer out just like what's the population in California just like has it on the top of its mind from reading all the things wow so no it actually goes through and counts every single person in California when you ask why it
takes so long I wonder how absurd you can get like can you be like rebase this by dentists in every state and it would just give you like a number oh yeah you could probably do like locality or municipality or something if you had that granularity zip code if it's in the census data and that's where it's ultimately pulling it from like police officers by city or whatever yeah yeah exactly yeah yeah I just I looked up to verify that the numbers pulling were generally correct and like California's population number is like 39 million and that's the first result that comes up on Google so I'm assuming it's just like pulling that for every state I guess that's how we'd answer that question is whether
it's the exact number or like whether it was the number that was like 20 21 would be whether it went and did an internet search but the great thing is for a lot of that stuff you don't really care if it's super exact it just needs to be pretty close and so you're like you're just kind of trying to get that relative idea of like is is this a lot is this not a lot it's it's pretty awesome