Skip to content

Data + Maps TUG

Data + Maps Tableau User Group 26 May 2026

Mastering Spatial Parameters: A Deep Dive into Storm Path Analysis

1h 11m 12,017 words transcribed

Summary

The Data + Maps Tableau User Group's May 2026 meeting, the only TUG devoted to a single chart type, hosted by Dennis Kao, who co-leads with Tore Levinsen and is looking for more co-leads. Dennis opens with his first viz on Tableau Public, made for Makeover Monday in 2020, before interviewing guest Andy Kriebel: what makes him tick, his favorite maps (a New York Times book of Americanisms, from Coke versus pop to hoagies), his mapping style of simplicity, a favorite recent tip (right-click a field in the view to find it in the Data pane) and a guilty pleasure. Andy then teaches spatial parameters, starting from the finished dashboard: click a hurricane path and see the US population within a chosen distance of it, here for Hurricane Debby, plus other use cases such as walkability buffers and crime around London football stadiums. He builds it live on Atlantic storm data: storm points with MAKEPOINT and paths with MAKELINE, why a shapefile of storm paths (one mark per storm) beats individual readings, city populations as a map layer, parameter actions that pass the clicked storm into a spatial parameter, BUFFER and OUTLINE for a controllable border, INTERSECTS to flag cities inside the buffer, and the limitation that the function cannot work across blended sources. He multiplies the flag by population to total the people affected, adds a Mapbox background and cleans up tooltips, then in the Q&A extends it to hospitals and farmers' markets along the path and explains the FIXED LOD he used. He closes with his Next Level Tableau 30-day accelerator.

Listen to this TUG

Prefer to listen? This meeting is also an episode of the Tableau TUG recordings podcast.

Key points

  • Andy Kriebel: teach a technique with a use case that makes the data relevant, such as the population near a hurricane path.
  • Right-click a field in the view to find it instantly in a crowded Data pane.
  • A spatial parameter driven by a parameter action lets one click redefine the area being analyzed.
  • Use a shapefile of storm paths (one mark per storm) when you only need the path, rather than every six-hourly reading.
  • BUFFER draws the area around a path; OUTLINE turns it into a border whose width you control.
  • INTERSECTS returns true or false; convert it to 1 or 0 and multiply by population to count the people inside.
  • Spatial functions such as INTERSECTS cannot work across blended data sources.
  • Clean up tooltips before sharing: remove IDs and flags no reader needs.

Jump to a chapter (22)

  1. 0:00 Welcome to the Data + Maps TUG
  2. 3:40 Dennis Kao's first viz
  3. 5:20 Getting to know Andy Kriebel
  4. 8:09 Favorite maps
  5. 11:44 A favorite Tableau tip
  6. 13:01 Guilty pleasures
  7. 14:16 Spatial parameters: the hurricane dashboard
  8. 18:20 Use cases: walkability and stadium crime
  9. 22:00 Building it: storm points and paths
  10. 31:20 Shapefiles versus individual readings
  11. 33:10 Cities, map layers and parameter actions
  12. 38:40 BUFFER and OUTLINE
  13. 42:20 INTERSECTS
  14. 46:00 A limitation: no blending
  15. 47:57 Population inside the buffer
  16. 49:47 A Mapbox background
  17. 51:47 Cleaning up tooltips
  18. 53:27 Q&A
  19. 59:00 A FIXED LOD for state population
  20. 1:00:50 Hospitals and farmers' markets on the path
  21. 1:08:10 The Next Level Tableau accelerator
  22. 1:10:05 Close

Transcript

0:01 Dennis Kao: To today's Data Plus Maps Tableau User Group.

0:06 Um, we are truly excited to have Andy Kriebel join us. Um, just a couple of quick housekeeping, uh, things.

0:18 So we're recording this event, so this will be available both on our Bevy page, our TUG page, as well as on YouTube, uh, in probably a couple days.

0:31 Uh, we've disabled the audio and video, and so if you have any questions, please use the two kind of spaces, Q&A and the chat room, and just enjoy. I think this is gonna be a great session.

0:44 Here's the quick agenda. Uh, we're gonna just really kind of, uh, Andy's gonna have the entire time. We're gonna, uh, try to have a, first have a conversation with him, ask him about five questions, um, and then he's gonna do his presentation. And, and, Andy, you, you have kind… You can go all, the entire time if you want, or just, you know, you finish when you finish.

1:06 All right?

1:07 Andy Kriebel: Sure.

1:07 Dennis Kao: And then we'll have a, a quick Q&A and closing as well.

1:12 Uh, we have- we're down to two co-leaders now-… Tore and myself.

1:17 And so we're, we're always looking for any co-leaders, anybody who's interested in maps.

1:22 Uh, I think we have the distinct, um, we have the distinction of being the only TUG that's focused on a single chart type.

1:32 Andy Kriebel: Oh.

1:32 Dennis Kao: So if you count maps as a s- as a chart type, uh, we're the only TUG that focuses on one chart type. So, you know, that, that makes us a little unique and interesting.

1:41 Andy Kriebel: Mm.

1:41 Dennis Kao: And so if you love maps, anything about mapping, uh, and Tableau, uh, we'll, you know, we're welcoming anybody who's interested in helping out and co-lead. It's not a huge burden.

1:52 Um, it's just getting, you know, speakers, you know, helping to c- host and things like that. And if you have any ideas, obviously, of, you know, where this TUG can go, that'd be great as well.

2:02 All right.

2:03 So our speaker today, of course, needs, really n- doesn't need an introduction, but I jotted down a few bullet points that I think I've noted from his, uh, various, uh, w- social media, public, Tableau Public, a couple videos that I've seen of him where he's, uh… And these are some of the highlights. And I think arguably, I don't know if there would be a Data Fam if Andy wasn't there around at the very beginning.

2:30 Um, if you, if you notice, he created Makeover Monday, Workout Wednesday. He founded the first TUG in Atlanta. He has over 1,500 visualizations, I think this a little, might be a little outdated, with over 12 million views. Um, I think if there's one kind of thing that I think about, uh, when I think about Andy is, you know, obviously instructor extraordinaire.

2:53 I mean, i- I think his, his whole thing is around Tableau education, and you can see that from, uh, you know, ever since he was a user, he, he really was engaged in that and making sure that, uh, in educating and training future Tableau users.

3:12 Uh, he is the founder currently of Next Level Tableau, and I'm sure he'll talk a little bit about that.

3:18 Um, but it's, it's this kind of very unique, innovative Tableau training space, community, platform. Um, and if you're, you know, if you're interested in really leveling up your Tableau, uh, skills, I think this is really the space to be in.

3:39 Andy Kriebel: Spoken as a former member.

3:40 Dennis Kao: Yes, spoken as a former member. All right. Um, and speaking of Makeover Monday, this is my very first viz in Tableau Public, and um, on the left. And you'll notice that, of course, it includes a map.

3:54 Of course. This is back in November 30th, 2020. And in, um, I think a few years back, there was, uh, a Makeover Monday challenge to, to visualize the 107 Watch Me viz live stream videos that Andy did. Um, so what, what was kinda cool about Makeover Monday a few years back is each week there was a video, or, or a live stream by Andy and, uh, others who w- to basically w- you just got to watch them viz.

4:25 And so he did 107 one, se- 107 of these. Um, and I think they're still, they're still available, right, on T- YouTube?

4:32 Andy Kriebel: Oh, yeah. Yeah.

4:32 Dennis Kao: Yeah.

4:32 Andy Kriebel: There's a playlist. Yeah.

4:33 Dennis Kao: Yeah.

4:33 Andy Kriebel: There's a Watch Me viz playlist.

4:35 Dennis Kao: Yeah.

4:35 Andy Kriebel: I'd, I'd love to get back to them, but it-

4:37 Dennis Kao: Yeah

4:37 Andy Kriebel: … requires a lot of time-

4:38 Dennis Kao: Yeah, that's a lot of time

4:39 Andy Kriebel: … to, so.

4:40 Dennis Kao: Yeah. And you'll notice that there's even a little picture of him right here.

4:43 Andy Kriebel: Oh, I see it now.

4:44 Ah, right.

4:46 Hi.

4:47 Dennis Kao: Anyways, enough fanboying right now. Um, Andy is a re- you know, of course, has done his fair share of maps.

4:54 Um, and he's gonna be talking specifically about a, a map that he created, which is this hurricane map, um, which, uh, obviously we shared on LinkedIn. It's on the Bevy page. And so, so first things first, um, I just wanted to… Let me stop sharing really quick, and just have a c- a few questions to kind of just get to know Andy a little bit.

5:19 Uh, we've, we've, uh, sent these questions to Andy beforehand, and so I'm just gonna kinda mix it up a little bit, just to kinda keep you on your toes as well. But first things first, uh, what makes you tick?

5:31 Andy Kriebel: Ooh, what makes me tick?

5:34 Um, I love learning.

5:38 Um, when I, when I get interested in something, I try to absorb as much as possible as I can about it.

5:44 Um, and then, uh, you know, if those things turn into habits, they usually tend to turn into addictions, uh, which turns into better skills. Um, maybe it's a bit OCD. I'm not quite sure. I haven't been diagnosed with Tableau-itis or anything like that. But, um- Yeah, I'm, I'm very, very curious.

6:04 Dennis Kao: Mm-hmm.

6:04 Andy Kriebel: That's probably the best way, the best word to use.

6:07 Dennis Kao: Yeah.

6:07 No, that's great. I, I, and I totally understand that. I got, I think I got the Tableau itch when I first started, and just had started vizzing as m- and mapping as much as I could. And so-

6:17 Andy Kriebel: Yeah

6:17 Dennis Kao: … I have, I don't have, you know, as many vizzes as you, I haven't been doing this as long as you, but I have, uh-

6:23 Andy Kriebel: Mm-hmm

6:23 Dennis Kao: … about 300 or so over the course of the last five years.

6:28 So yeah, I totally understand that itch.

6:30 Um, next question is, uh, what inspires you?

6:35 Andy Kriebel: Um-

6:35 Dennis Kao: A little different, I think.

6:36 Andy Kriebel: I, uh, from a professional standpoint, I really love seeing the kinda light bulb go off. I, I want, my goal is to kinda help people love Tableau as much as I do. I don't know if that's possible, because I don't think anybody could love Tableau as much as I do. But, um, I love those light bulb moments that people get when they're using Tableau and, you know, everybody has that when, after they've been using Tableau for a while, where something just clicks and like, "Ah, now, now I get it." And then using that, I, I like helping them take that and turn that into career opportunities, and basically life-changing opportunities.

7:13 'Cause, you know, Tableau's done a lot for mer, for my life, and I'm very, um, I get a lot of inspiration from helping other people as well.

7:22 Dennis Kao: Okay. How about personally?

7:24 Andy Kriebel: Um, family for sure. Yeah, my kids. Uh, I've got five, so I've got my, I've got my share. So Annika, our youngest, uh, that Eve and I have together, she turns three on, uh, Sunday? Yeah, on Sunday. I should know that a bit better. Um, but it's fascinating with a child being brought up as bilingual as well.

7:47 Dennis Kao: Mm-hmm.

7:47 Andy Kriebel: And watching a two-year-old switch back and forth between German and English is absolutely fascinating.

7:53 Dennis Kao: Yeah. We've, we encountered that when we moved to Canada eight, eight years ago. Like, our son and our c- our daughter being in French school, so it, and kind of going-

8:03 Andy Kriebel: Right

8:03 Dennis Kao: … through a bilingual education.

8:05 Andy Kriebel: Yeah, yeah. Yeah.

8:06 Dennis Kao: Versus the US, right.

8:08 Okay.

8:09 Um, do you have any favorite maps?

8:13 Andy Kriebel: Any favorite maps.

8:15 Um,

8:19 do I have any partic- there's one I remember. I have a book called, oh, it's by The New York Times. It's about, like, Americanisms or something like that.

8:27 Um, I meant to grab it before I came out to the office. Um, but it's basically like a, it's about, like an example would be what do people say, uh, when they order a soft drink, right? So like in the South, they, you always order a Coke even if it's a Sprite.

8:44 Dennis Kao: Mm-hmm.

8:45 Andy Kriebel: Uh, you know, it's a pop in the Midwest. It's a soda somewhere.

8:47 Dennis Kao: Yeah.

8:47 Andy Kriebel: Right, that kinda thing. Um, so that book is fantastic if nobody's ever seen that before. Um, the book is called-

8:53 Dennis Kao: What, what is it called again? What is it called?

8:55 Andy Kriebel: Um, I can't remember the name of it off the, off the top of my head, but it, it's, it's, it's like a cultural map of America. I don't know. It has a really funny title to it, but.

9:03 Dennis Kao: Okay.

9:04 Andy Kriebel: I, I, it'll come to me as soon as we get off the call. It'll, it'll come to me.

9:08 Dennis Kao: Okay.

9:09 Andy Kriebel: Um, but yeah, it's, it's really neat. There's a lot of, like, you know, growing up in Philadelphia, uh, like we say hoagie, which nobody's probably heard of.

9:19 Um, a hoagie is like a subway sandwich or, you know, it's called a grinder some places. But it's interesting to see, like, because I know that term is only in Philadelphia, so you see this tiny little spot in Philadelphia-

9:32 Dennis Kao: Mm-hmm

9:32 Andy Kriebel: … where they say… They don't say it in the rest of Pennsylvania. It's just the Philadelphia area.

9:36 Uh, so that, that book in, in itself is really, really int- I find it very interesting. There's one that's similar for London as well. It's called, um, it's back here. It's called, uh, The International City, um, which has lots of really cool maps about, about London as well. So, but I don't know if I have, um…

9:56 I find the Ordnance Survey very interesting. I'm not sure if you're familiar with the Ordnance Survey in the UK.

10:02 Dennis Kao: No, I'm not.

10:04 Andy Kriebel: Um, so that's, uh, basically it's run by, well, the Ordnance, Ordnance Survey.

10:10 Um, and y- they basically, you have like, it's like a coordinate system in the… It's great if you're, if you're in, uh, into hiking.

10:18 Dennis Kao: Mm-hmm.

10:18 Andy Kriebel: 'Cause you can figure out where you are in the country just based on off of a couple of codes.

10:22 Uh, and it goes down to, it starts at like, I don't know, 10 square miles, then it goes down to one square mile, and then it goes down to… Or not miles, it does it in meters as, as you should.

10:33 Dennis Kao: Right.

10:33 Andy Kriebel: Um, it goes down to like one square kilometer, and it goes all the way down to like two meters. It's almost kind of like, um, what3words.

10:41 Are you familiar with what3words?

10:42 Dennis Kao: Mm-hmm. Yeah.

10:43 Andy Kriebel: They're, yeah, so it's kinda, kind of like that where you can kinda figure out where you are, but it uses like letters and numbers so you can figure out exactly where you are.

10:49 Dennis Kao: Okay. I see.

10:50 Andy Kriebel: And that's great. It's, it's really cool.

10:51 Dennis Kao: I get it.

10:51 Andy Kriebel: Yeah.

10:51 Dennis Kao: Oh no, that's cool.

10:52 Andy Kriebel: Yeah. It's really useful for navigation.

10:53 Dennis Kao: Well, that's how we used to navigate, right? Like the-

10:55 Andy Kriebel: Yeah.

10:55 Dennis Kao: That's y- that's how we used to navigate, like with the atlases and stuff, right?

10:59 Andy Kriebel: Yeah, yeah.

10:59 Dennis Kao: You have the, kind of the grid and stuff like that. Yeah.

11:01 Andy Kriebel: Yeah, yeah.

11:02 Dennis Kao: The paper maps, right?

11:03 Andy Kriebel: Yep. Exactly, yeah.

11:04 Dennis Kao: Okay.

11:05 Uh, can you share something about your style?

11:10 Andy Kriebel: Um-

11:10 Dennis Kao: In this case, kinda Tableau or-

11:12 Andy Kriebel: Yeah, yeah, yeah

11:13 Dennis Kao: … or mapping style or.

11:14 Andy Kriebel: Um, definitely simplicity. Um, even if it's like a rather complicated looking chart, I try to still make it look simple.

11:22 Dennis Kao: Mm-hmm.

11:22 Andy Kriebel: Um, I use very few colors.

11:25 Um, I try to stay like on brand with fonts and colors.

11:30 Um, use kinda white space the same way in all of my visualizations.

11:37 Um, but I, I strive for simplicity and understanding over complexity.

11:42 Dennis Kao: Okay.

11:44 Great.

11:45 Uh, what is your favorite tip or trick in Tableau?

11:49 Andy Kriebel: I learned a, I learned a new one just last week, which I don't know how I didn't know, but apparently it's, it's been a recent release and nobody knew.

11:59 If you are in a worksheet, let's say, you know, you've got a bar chart built, whatever. And you know how, like, you could end up with like hundreds of fields in the data pane, and sometimes-

12:08 Dennis Kao: Mm-hmm

12:08 Andy Kriebel: … it's difficult to find that particular field, right? Let's say- You've got a bar chart that's sales by, you know, whatever, uh, category.

12:17 And that sales field is, like, a, you know, custom calculation or something, and, and it's gonna take you forever to find it. You can actually right click on that field in the, in the, uh, in the worksheet section and choose Find in Data Pane, and it goes straight to it.

12:31 Dennis Kao: Oh.

12:32 Andy Kriebel: So you don't have to search.

12:34 Dennis Kao: Oh, that's cool.

12:35 Andy Kriebel: Yeah. I'll, I'll try to remember to show it.

12:37 Dennis Kao: Okay.

12:37 Andy Kriebel: And I was like, I was like, how did that… Where did that come from?

12:41 Dennis Kao: Well, I mean, that's pretty amazing, like, after 20 years, I mean-

12:43 Andy Kriebel: Yeah, yeah

12:44 Dennis Kao: … it, it's a, it's amazing-

12:45 Andy Kriebel: And-

12:45 Dennis Kao: … that you can still learn things that-

12:47 Andy Kriebel: Yeah

12:47 Dennis Kao: … you know, new things-

12:48 Andy Kriebel: It's funny

12:49 Dennis Kao: … you know, every day.

12:50 Andy Kriebel: Yeah, yeah.

12:50 Dennis Kao: Or every week.

12:50 Andy Kriebel: But apparently it's not in, it's not, like, in any of the 2024 versions, so it's a relatively recent thing.

12:56 Dennis Kao: Right.

12:56 Andy Kriebel: So.

12:57 Dennis Kao: Okay.

12:57 Andy Kriebel: Yeah.

12:58 Dennis Kao: Okay.

12:58 Andy Kriebel: It's pretty funny.

12:59 Dennis Kao: Um, then the final question is kinda what is, you know, are there any, do you have any guilty pleasures or things that you might kind of-

13:07 Andy Kriebel: Um

13:07 Dennis Kao: … you know, think as, as guilty pleasures?

13:09 Andy Kriebel: Yeah.

13:11 Dennis Kao: Oh.

13:12 Andy Kriebel: Yeah.

13:13 I, I always eat the entire can.

13:17 Dennis Kao: Like, in one sitting?

13:18 Andy Kriebel: In one sitting, yeah.

13:22 Dennis Kao: Okay.

13:22 Andy Kriebel: That's my, that's, that's… It's a bit of a problem. I don't like, I don't like it when they go on sale.

13:28 So my, my rule is you can't buy them unless they're on sale.

13:31 Dennis Kao: Oh, there you go. Okay.

13:32 Andy Kriebel: So.

13:33 Dennis Kao: Okay.

13:33 Andy Kriebel: Yeah.

13:34 Dennis Kao: All right.

13:35 All right. Well, thanks for, uh, thanks for, you know, the, this quick conversation.

13:39 Andy Kriebel: Oh.

13:41 Dennis Kao: All right.

13:42 Okay. So I'll let you share your screen.

13:44 Andy Kriebel: Sure.

13:44 Dennis Kao: And if you wanna… It's, uh, it's 11:20. Oh, uh, it, we're 20 after the hour now.

13:50 Andy Kriebel: Oh, yeah.

13:51 Dennis Kao: So.

13:51 Andy Kriebel: It's been about an hour.

13:52 Dennis Kao: Uh, you have a good chu- you have a good chunk of time, so feel free to-

13:55 Andy Kriebel: Okay. Sure

13:55 Dennis Kao: …

13:56 to go however long you want. Um-

13:57 Andy Kriebel: Yeah. And just-

13:58 Dennis Kao: We have scheduled until…

14:00 We have, uh, this scheduled for an hour and a half.

14:03 Andy Kriebel: Okay.

14:03 Dennis Kao: But, um, feel free.

14:04 Andy Kriebel: Okay.

14:04 Dennis Kao: All right.

14:04 Andy Kriebel: I don't think, I don't think we'll take that long.

14:06 Dennis Kao: Okay.

14:07 Andy Kriebel: Um, but yeah-

14:07 Dennis Kao: Perfect

14:08 Andy Kriebel: … if anybody has any questions along the way, just feel free to interrupt, 'cause I can't see the chat. So, um, I won't be able to look at both things at the same time. Um-

14:16 Dennis Kao: Sure.

14:17 Andy Kriebel: But what we're gonna be looking at today… Actually, let me, let me go. Here we go. So this is what we're actually going, I'm gonna show you how to create today, and this is using what are called spatial parameters, which are a relatively new feature, just a couple of years now, I believe.

14:32 And we built this in a Next Level Tableau class. Uh, we built this in an hour.

14:38 And, uh, the whole idea was, like, when I'm teaching, I like to try to use real data as much as possible so that we can kinda come up with a, a story that makes the data real relevant. So, you know, we're, we're… I'm wanting to teach spatial parameters. Well, what's a use case where those would actually be useful?

14:57 Um, and there's tons and tons of different use cases, and this is just one I'm going to show you. So what we're looking at here is, um, hurricane, uh, storm, storm paths for hurricanes in 2024. So you can see the filter on the, on the upper right there.

15:12 And what I wanted to be able to do is look at, well, what was the potential population that was impacted at different points of the hurricane. So for example, if I, um, I have hurricane, uh, let's see. What hurricane is this? Hurricane Debby, right? So if I… You see how this highlights the line. If I click on that, the spatial parameter is actually going to highlight all of the US, it's only US population, that, um, was within 100 miles of that storm path.

15:41 So the idea being, you know, we think people within 100 miles are potentially impacted, but I could change that. I could say, "You know what? I just want people that are within 25 miles of the storm path." And you'll see that becomes a lot smaller.

15:54 Or if I just wanna know, all right, well, I live, you know, in South Georgia. I just wanna know what was, what was the potential impact for me there.

16:01 And let me make it a bit bigger so we can see it.

16:04 And you'll see this time it just draws a circle. So spatial parameters are, like, super flexible, because you can use them with any spatial type. It's not limited to… Like, a parameter, typically, you have to limit it to one data type, right? You've got either, you know, numbers or strings or dates, something like that, where with spatial parameters, any spatial field you can use to populate.

16:26 And I'll, I'll show you how, how all of, all of that works. So what I'm gonna do is I'm gonna show you how to, um…

16:32 There's how many different layers here? So we have, uh, we have a layer for the lines.

16:37 We have a layer for the individual dots. Um, so that's each of the reading every six hours on the hurricane path.

16:44 We then have, uh, the population range. So if I… Let me click on the line here.

16:49 So you'll see all the red dots. That's all, I believe, ZIP code level population.

16:54 Um, and then we have the buffer, which is that kind of, like, uh, amoeba-looking thing that, uh, that little worm it looks like here. Uh, so I don't know how many layers that is. Five. Five layers, something like that. And, uh, so I'm gonna show you how to kind of put all this together into telling a nice little data story. And this is all built around spatial parameters, which help you build smarter, more interactive maps in Tableau.

17:19 Um, Dennis has already go in, gone through the, my, my intro, but I've been using, using and teaching Tableau for 19 years now. Um, helped build the Data School, and I was the first, um, Tableau user at Coca-Cola before being recruited to run everything Tableau related at Facebook.

17:35 Um, I've trained over 1,000, um, um, consultants, Tableau consultants, and I'm in the Visionary Hall of Fame, and like Dennis mentioned, over 1,500 Tableau Public vizs. So today's topic, spatial parameters.

17:48 And here's another example that we built in class. In this particular example, it's a similar type of analysis. We were having a pretend in-person Next Level Tableau Conference. We did have a virtual Next Level Tableau Conference the week before the Tableau Conference, and I will actually, uh, at the end of this presentation, I'll show everybody how to get access to that for free.

18:09 Um, but the idea was- We want to host it in New York. So we have different, um, locations that, like venues that can, uh, that can host the conference. And we have different parameters we can use for how long the event's gonna be, um, what is the budget, how big does the place need to be, and then also, um, we wanna know, well, how convenient is it for people to walk to, right?

18:32 So that's kind of what the buffer is giving us there. It's giving us a one-mile perimeter around that. So it's helping us, you know, figure out how many people live in that area.

18:42 Okay, so that's one example. Um, but they basically, when you use this spatial parameter, allows you to dynamically, so clicking usually, uh, select a point, a line, or a polygon on a map so you can create engaging map-based visualizations. Now, spatial parameters also work with map layers as well. Uh, we're not gonna get into that today.

19:04 Um, but basically it allows you, just like any other parameter, spatial parameters allow you to click on a spatial element, and it'll update other parts of the visualization or dashboard based on that selection.

19:17 And one of the things that I really love about spatial parameters is they work across data sources, which is going to be important for the analysis that we're going to do today, 'cause we've got several different data sources that we're going to work with. And here's another use case. Uh, in this case, I wanted to find the best pizza place in New York.

19:36 So we have, um, the street. The streets are, uh, are a map layer.

19:42 Um, and then we have, uh, the, the, um, not the tube lines, the underground lines. No, not the underground. What's it called? Subway. Um, you've got all the subway stations. You've got a buffer around those, and then once you zoom in, you can find, like, the best, um, the best pizza places. So this uses, uh, um…

20:02 It also uses the add to zoom extent feature, which doesn't get used very often. It can be a bit difficult to understand. Again, I'm not gonna go into that. But you see how this zooming is happening. That's working with the, uh, the zoom control feature.

20:17 Okay, another one is, uh, looking at crime around specific locations. So in this case, we wanted to look at around, um, football stadiums or soccer stadiums in London.

20:28 We wanted to know, well, what's crime like around those stadiums? Like, is it more prevalent, uh, before, uh, before and after matches, right? And, and because we can get this data publicly, um, we could filter it down to just matches that are around that time and look at, uh, you know, antisocial behavior is basically, like, everybody being drunk.

20:47 Um, that is, uh, you know, kind of the most common thing. So we wanna know, like, is it safe to go to a match at that particular stadium?

20:56 And then again, this is what I'm gonna show you.

20:58 Uh, we're gonna be analyzing some, uh, storm path data. Okay.

21:03 Everybody ready to go?

21:05 I hope so.

21:06 Let me flip over to Tableau.

21:09 And I've got just a blank slate here. Let me just go to the home screen.

21:13 And, uh, I have my data sources here, but that's not the right place. Give me one second.

21:19 Okay. So I have all these different data sources. The first one I wanna look at is I wanna look at, um…

21:25 Let's just look at every Atlantic hurricane. So if I drag this data set on top of Tableau, it's gonna automatically connect to it. If you're using the connection pane on the left-hand side and you're using flat files like CSVs and Excel files, you're wasting your time. Just drag it straight on top of the canvas. Don't bother going through the menus.

21:42 Um, and what you can see here is we have SID, so that's the storm ID, the storm season, the name, uh, and then this ISO time. That's, like, when they took the reading. We see the latitude and the longitude.

21:55 And then, you know, you could look at the, um, storm strength if you wanted to classify it or something like that. So this is every storm from 1950 and beyond. I'm gonna, just for the sake of this presentation, I'm actually gonna filter our data down. Um, what was it called again? What's that field? Season. Um, so I'm gonna just look at, let's just say, let's just say ones from, um, 2023 and 2024.

22:21 I'll just keep it a nice small list and hit Okay. All right. So now we have that sheet.

22:28 And I have these two fields, latitude and longitude. So I could double-click on those, and when I do, I just get a point somewhere probably out in the middle of the Atlantic, um, and it just has the average of latitude and longitude. Now, if I wanted to build that up into, uh, like, a map-level view, I could, for example, put the storm ID onto Detail.

22:46 And what Tableau's doing here is it's actually aggregating all of the individual latitude and longitude measurements for that storm. So this particular storm here, let me put the name onto Detail.

22:58 Um, so Storm, uh, Ophelia here. This is basically the average of all of the different measurements are off of the coast of North Carolina. It doesn't mean that's where it started. It means that's kind of the average of all of the points. So if I wanna split this up, I can, um, I can keep adding detail. Like, let's say I put the ISO time on, and I look at each individual measurement.

23:19 Okay, so now I get something like that. It's starting to look more like, you know, more like a hurricane path. All right. But I want these to be maybe like, uh, like lines. All right. So I'm going to change this to a, um, I'm gonna change this to a line.

23:35 And, uh, Tableau's gonna just kinda connect the dots left to right, which isn't what I really want. So I'm gonna put the ISO time onto the path. And now I can see each of my different, um, hurricane paths.

23:46 All right?

23:47 But notice, this is using the average latitude and longitude up here. In order to use map layers, you need to have the, um, you need to have latitude and longitude fields themselves. So typically, you will do that with a spatial point. So I just wanna give you an idea on kind of, you know, how you would play, kinda connect the dots in Tableau. Now, what I would do, instead of doing that, what I would do is I would create a new calculated field, and I'm gonna call this my, um- Let's call this our storm measurement location or something like that.

24:18 And I'm gonna use a function called MAKEPOINT, and this creates a geographic field, um, that is a spatial point. So I'm gonna pass to it my latitude and my longitude.

24:32 Hit Okay. And now when I double-click on this, it's gonna give me a dot for every… Remember before, when I first built the view, I had one dot, and then I had to keep ag- add- adding granularity to it. Well, this one looks like it actually populates all of the data at once, but it doesn't. If you look on the bottom left of Tableau, so down here on the, on the bottom left.

24:52 Uh, why is it not zooming? Okay.

24:56 Okay. There we go. That didn't work. You'll see on the… Oh, I just locked my screen.

25:01 One second.

25:03 I have a hot corner, and I hit the hot corner. Okay. Um, but this is cer- Right now this is only one mark in the view.

25:12 Um, so when you hover over, you see everything is highlighted. So we still need to split the view up. That's fine. So I'm gonna change these to circles, and once I do that, I get back to a single dot.

25:20 And I'm gonna look at each measurement again.

25:23 Dennis Kao: Andy, um, you're not sharing your screen.

25:25 Andy Kriebel: Oh.

25:26 Right. So let me go back. Um, okay, so this is where I, where I left off here. So when you use this MAKEPOINT function, and you double-click it to create the map, it looks like Tableau has built all of the data, but it hasn't. This is only a single mark. And you can tell that by looking on the bottom left-hand side of Tableau where it says one mark.

25:45 Okay, so we need to split the data up. But I just want individual dots for each of these, so I'll, I'll grab the storm name and maybe put that on Detail. That's important.

25:53 Um, do I want… I need the storm ID on there 'cause I need to split it up for each storm ID.

25:59 And then, uh, let's maybe put, uh… Let's switch these to circles, and we get something like that. Again, it's doing the average of all the points. And I'll put my ISO time onto Detail.

26:12 Okay, so we got something like that. So now we've got every individual point. Maybe I'll shrink them down so they're a bit easier to look at.

26:18 Um, and one of the things that I always do on dots on a map is I always click on the color shelf and get rid of the borders, and I get rid of the halos. I hate the halos.

26:29 Um, personal preference. Okay, so that gives us, you know, kinda one, one level. Notice I didn't connect them yet. I didn't put any, um, I didn't put any, I didn't connect the lines this time. I just have the dots. That's because I have a different type of spatial file that, uh… Sorry, a, a different file that has, it's called a shapefile, that actually just has one mark for each storm.

26:51 So right now, I don't know how many storms are in here, maybe 20 or so. Uh, this will actually have one mark for each storm. So I'm just gonna drag that shapefile on.

27:02 And notice how this is a brand-new data source. It's not connecting it to the other data source. This is a brand-new data source. So I'm gonna go to my sheet, and notice I have two data sources over here now.

27:14 And I have this Geometry field. I'm gonna go ahead and rename that. I'm gonna try to.

27:19 Come on.

27:20 I'm gonna rename this as my Storm Path.

27:24 That way it's easier for me to remember what it is later on.

27:27 And now I can drag that onto the view as a layer, and now I have each of the individual storms, okay? So I need to put Storm ID onto Detail.

27:37 All right. And maybe I'll shrink these down.

27:40 And I get, you know, it's a, it's a bit of a mess here. Oh, it's because I didn't, um, I need to change the, I need to make this Date/Time, Date/Time. And I need to actually, um, I need to put a data source filter on here as well, which I forgot to do.

27:59 Um, oops. Let's see. So what's going on here? So something's messed up with my data at the moment.

28:06 Um, give me two seconds.

28:11 So that's a null.

28:14 Let me… Oops.

28:17 Oh, Tableau just crashed on me, didn't it?

28:21 Ugh.

28:22 I'm testing out a new version for them because mine keeps crashing when I'm giving presentations.

28:29 And look what happened, Dennis.

28:33 Dennis Kao: Always, right?

28:34 Andy Kriebel: Always. Yeah.

28:36 All right.

28:37 Uh, send error report and open the recovery workbook.

28:43 That's okay. I'm, I'm helping them test.

28:45 Okay, so let me… So I have my Atlantic storms here, and I believe if I look at the data source.

28:51 Okay, so this doesn't…

28:54 Ugh, did it again.

28:56 It's consistent at least, right?

29:00 Sorry.

29:03 Maybe I won't try that.

29:07 Send error report. Open.

29:10 Okay.

29:12 What I'll do is, um, it's, I- I'm not quite sure why that data is… Let me go here to Data Source. Let me see if I can do it here instead.

29:25 Okay, so it doesn't like me.

29:29 Um,

29:32 okay. I think what I'll actually do…

29:36 That's okay.

29:37 Uh, send error report. Open.

29:43 Right.

29:44 I'm going to ignore that, and I'm gonna just drag this on as a layer.

29:48 And I will put my Storm ID onto Detail.

29:52 Okay. So we've got too many storms on here. I'm not quite sure how to clean it up at this point because my begin and end doesn't work.

29:59 Um, I think, I think the first four of the Storm ID. Yeah, I could do that. Um, let's do, um, ba, ba, ba.

30:14 Storm year. Let's see. Left of that. I'm just trying to work my way around it. This is good troubleshooting live, isn't it?

30:24 Uh, let me make that a whole number.

30:27 Make it continuous. Okay.

30:30 So now if I do at least 2023, we should be good to go.

30:36 Okay. There we go.

30:38 Um, so that is that. Can you see that now, Dennis? Is… Can you see everything okay on the screen?

30:44 Dennis Kao: Yeah, it looks good.

30:45 Andy Kriebel: Okay.

30:45 Dennis Kao: Looks good. Um-

30:46 Andy Kriebel: Yeah

30:46 Dennis Kao: … since we're kind of at a, a, a breaking point, um-

30:50 Andy Kriebel: Mm-hmm

30:50 Dennis Kao: … Patrick asked a question. Could you talk a little bit about pulling data, since you pulled in data as a X and Y, as a, a spreadsheet, as well as-

31:01 Andy Kriebel: Mm-hmm

31:01 Dennis Kao: … a shape file, like, kind of the pros and cons, or kind of advantages or disadvantages of both or… Yeah.

31:08 Andy Kriebel: Um, well, I mean, if I'm using a shape file, it's already predefined for me, and the, the benefit of this is the whole path, the, the whole storm is just one mark in the view.

31:19 Um, whereas if I'm looking at every individual me- e- every individual measurement, it's obviously, you know, the data's gonna be 20, 50 times bigger than, uh, than just having the individual line. So if you just need the aggregated data for, you know, just the storm path itself, like for example, how long it is or something like that, then I would recommend just using the lines.

31:40 You also, uh, the…

31:43 Having this as a line also opens up some other calculations as well. So I could create, like, uh, let's call this, like, storm length.

31:52 Um, and there's a function.

31:56 And let me just scoot this over a bit.

31:59 So in our spatial functions, there's one called, uh, length.

32:03 Right? So if I double click on that, and I put my, uh, storm path in there… Oops.

32:10 That's another thing that annoys me.

32:13 Now the calculation's broken.

32:15 Uh, so I need to put my storm path in here, and then I wanna measure it in, uh… Since it's in the US, I'll measure it in miles.

32:24 And now if I put that onto the detail, you c- I can see how many miles. So this storm was 3,000 miles in length. So depending on the, depending on the, um, the spatial type, you can leverage different calculations. I don't know if that helps at all, if that answers his question or not.

32:42 But it kinda depends, I guess, is the answer. I know that's not much of an answer, but

32:49 does that help at all, you say?

32:51 Dennis Kao: I think so. I think so.

32:53 Andy Kriebel: Okay. Okay.

32:55 So we have the, um, we have the storm path. We have the, uh, each individual mark. Okay, that's good. Um, let's see what else we could bring in. So I have data about US cities. So let's, let's drag that into the view.

33:10 And what do I have? I got city names, uh, states, FIPS, latitude and longitude. Okay, that's good. Population, uh, and so on. Okay. We have a, uh, this is just a bunch of ZIP Codes about the, about the, uh, the city, but we have latitude and longitude. This must be, like, the central point of the city. Okay. Very good. So we have that. Again, it's another data source, another separate data source.

33:35 So I'm gonna create another calculated field. I'm gonna call this my city location,

33:41 and I'm gonna use my MAKEPOINT function again, and this will be my latitude and my longitude.

33:47 Oops.

33:50 Helps if I use the right field.

33:53 LNG.

33:56 And when I bring this one onto the view…

34:00 Okay, now I'm getting a lot more information here, right?

34:03 Um, but I don't want Alaska and Hawaii, so let me go ahead and filter those out.

34:08 So Alaska.

34:11 Uh, is there any other ones on here? Uh, Puerto Rico. Uh, we could probably leave Puerto Rico. Um, and then Hawaii.

34:20 There we go.

34:22 And exclude.

34:24 Okay. So that should zoom the data in a bit.

34:26 Great. So this tells me basically the center point of every city. So I'm gonna make this a s- uh, circle, and I'll put the city and the state onto detail.

34:38 Let me make these really small.

34:41 Okay, something like that, and maybe I'll make them red.

34:45 Okay.

34:46 And right. So now… And then I could put the, perhaps I could put the population onto detail. So now when I hover over an individual mark, I can see that population. Now, with map layers, I can adjust kind of the layering of these, like which ones are in the front and which ones are in the back. So I'm gonna put my cities in the back.

35:04 Okay? So that means that, so… Oops, that took it off. Didn't want to do that. Let me just drag that down.

35:12 There we go.

35:13 And I want my circles in front of my storm paths. Okay. So now I've done a bit of, a bit of ordering now. Okay. Um, so going back to the example we want to look at here. Uh, what happened to it?

35:28 Let's go here. Um, what we wanna do now is notice how the population is only showing when they use, you know, when it's inside of the, uh, kind of the blob, right? So what I need to do is I need to first, I need to now set up a spatial parameter that's gonna capture the value that I click on. Okay. So what is that? What is it? What do I actually mean by that?

35:52 Um, if I could find the right sheet.

35:54 Here we go. All right. So I'm gonna create a new parameter, and I'm gonna call it, um, I'll call it my… I'll just give it a terrible name, something like spatial parameter, and I'll call it…

36:06 Uh, the data type is spatial. I'm gonna leave everything else alone. That's fine.

36:10 Hit okay. And now when I show that parameter, right now it's not doing anything.

36:16 But if I go up to my, uh, worksheet actions- I'm gonna wanna set up multiple different actions to populate that parameter. So I'm gonna add a change parameter action, and let's call this, um, update, uh, I'll say path.

36:35 And my target parameter will be… I only have one, which is good, and this one is going to be my storm path. So that's where the naming is good to use.

36:44 And then I'll leave everything else alone. Okay, so what that means is when I click on a line, it's gonna populate that parameter, right? So let me click on a line. Notice how we get some numbers in there.

36:54 Click on a, click on a different line, ugh, and then go there.

36:58 And then, but if I click on a point, it doesn't actually do anything. So I need to create another, um, another parameter action that's going to use those points. So let's create another action.

37:11 Let's change parameter. Let's call this update, um, uh, I'll just call it update point.

37:18 Not a very good name.

37:20 And I want to update it with the storm measurement location.

37:25 Okay, so now when I click on that mark, notice how it turns into, up here in the upper right, it turns into a point, right? It just says point. Whereas if I click on a line, it now gives me basically the entire line. It's giving me basically, uh, I think it's kind of like a polygon more or less, or it's something like that. But notice it's a very different object, and those are actually across different data sources as well, and that's the beauty of a parameter.

37:50 Parameters work across the entire workbook. So I'm able to populate that parameter whether I click on a US city, or sorry, uh, a storm, storm path, or if I s- uh, click on a particular location. All right, so now that we have that, I can go ahead, and maybe inside of my storms, I will go ahead and create a, uh… It doesn't really matter which one of these it's in, actually.

38:13 I'm gonna create a new, um, uh, let's see. I'll create a new… No, not a parameter.

38:18 I'm gonna create a new calculated field that I'm gonna call my, uh, I'll call my storm buffer.

38:26 Or actually, I'll call it my parameter buffer.

38:31 And I'm gonna use the buffer, uh, the buffer field here.

38:35 And the, the neat thing about this buffer is I can just pass to it whatever geometry field I wanna use, and this is where the spatial parameter comes in handy. 'Cause I could say, "Well, just build a buffer around that field," and by default, I'm just gonna set it to 100 and then, uh, miles.

38:52 So you can, you can set this up as a parameter like I've done before, uh, like I showed you, but don't worry about that for this case.

39:00 Okay, so now I can bring that on as another layer.

39:04 And notice now we get this nice little buffer. Well, let me put that, uh, I'm gonna put that all the way down the bottom. I wanna make that kind of in the background.

39:13 Hopefully, it moves to the back. And then maybe I'll, you know, color-code it like a light blue, maybe reduce the opacity. I want it there for kind of context.

39:22 All right? Um, I could turn the border off if I want. You know, depends on… I, I always turn the halos off, and we get something like that. All right? And that looks, that looks pretty cool. Um, and what I wanna do now is, uh, I can actually turn this off. So if I disable selection, that means people can't actually click on the buffer, right? So now if I click on a point here, you'll see I get 100-mile buffer around that point.

39:48 Click on a line, let me try to click on a line, and now I get a buffer around that whole line. So pretty, pretty neat feature there. A- and this is, again, this is where, you know, when you're using layers, you get a lot of control over how this looks as well. So if I'm on my buffer, I can maybe, you know, put a red border on it, or… Sorry, that's not how you do a border.

40:09 I could put, you know, perhaps I put like a, you know, um, a red border on it, and that looks okay. But I wanna be able to control kinda the width of the border. So I'm gonna create another calculated field that's gonna be my, uh, I'm gonna call it my buffer border.

40:25 And you have another function called outline, which is a really neat, um, function, and I'm gonna pass to this my parameter buffer.

40:33 So this is gonna create, uh, a border around that object.

40:38 And if I drag that onto the view,

40:44 you see I get this nice little outline. And this is… I like doing this instead of just using the border function, like, uh, instead of using this border function here, because now I can control the width of that border. So let me disable the selection again, 'cause I don't want view- people to be able to click on it, and then I'm gonna move it down.

41:05 Okay. Now, if you notice here, I can make this as fat as I want.

41:09 Right? So let me increase the size of it, right? So I got a lot more control over how my border looks, right? So you might like something like that, and maybe you, you know, you add some, you know, you reduce the opacity or something, right? You can make it look, like, super cool if you want.

41:23 Um, so let me drag that down.

41:26 Okay.

41:28 But I ju- I just like how you have, you know, more control over the way that the, the border looks there. Let's get rid of our halo and the border we don't need. Okay, so just a little s- little something there to, to help you, you know, maybe accentuate the mark that you're clicking on.

41:43 Okay. And now that we've clicked on that particular mark, let me go ahead and shrink that down even a little bit more.

41:51 Um, uh, let's see. What was the next thing I was going to do? Oh, so now what I wanna do is I only wanna highlight. So if I go back over to our example, notice how this line became red because it was inside of that buffer. Or if I click on a single point, notice how that line still becomes red. Okay, so I wanna create another calculated field, and I'm gonna call this, um, uh, does line intersect

42:22 Okay. And I'm gonna use a function called inter- intersects. It's a really difficult word for me to say. And I'm just trying to see if two things intersect. So I wanna say, does my line, so that's my storm path, does that intersect with the buffer?

42:39 Oops.

42:43 No, not the buffer border. Does it intersect with, uh, what did I call it? Uh, parameter buffer.

42:51 And that's just gonna give me a true false.

42:53 And I'm gonna go to my line, and I'm gonna add that to the color shelf.

42:58 Okay? And I get a true and a false, um, this doesn't look great. I'm gonna go ahead and turn that off for now.

43:06 Um, and what's going on here? Why is it all gray?

43:12 Um, let me click on a different mark here.

43:19 All right. So something's going on here.

43:24 My parameter buffer.

43:28 Why is that not working?

43:30 It all turned gray.

43:37 All right. I'm not quite sure why this is not…

43:41 So there's blue.

43:45 Oh, I put it on the wrong place, that's why.

43:49 Sorry about that. Let me go back.

43:53 It needs to be on my…

43:56 Let me just shrink this down again.

43:59 Formatting always takes forever, right Dennis?

44:02 Um, storm path, that's where I wanna have it.

44:06 So does the line intersect? There we go. Okay.

44:10 So then you can see that this other line turns orange as well because it barely touches my buffer there, right? So if I click on a different point here, let's say, uh, this one here, you'll see only that one line gets highlighted.

44:25 Okay. So that's, that's that.

44:27 Um, let me go ahead and put the measurement behind the line.

44:32 Okay. There you go. Now you can see it a bit better.

44:35 So that's how we can kind of make those, make those in- intersect a bit.

44:40 Um, and but now I want to also only show the US population when it intersects with that buffer. Okay?

44:50 Um,

44:52 so what I wanna do here now then is I want to go to my US cities, and I'm gonna create a new calculated field, and I'm gonna call it, uh, city in buffer.

45:05 And I'm gonna use my intersects, intersects function again.

45:10 And this time I wanna know, does my city location intersect with my, uh, spatial, uh, spatial per- no, with my buffer.

45:22 My parameter buffer.

45:24 Oh.

45:26 Okay. Now notice I'm getting an error message here because I'm trying to go across data sources in this case. So what I actually need to do, um, is if I go back over here, I'm gonna copy this calculation, and I need to paste it here.

45:43 And

45:46 if I edit the calculation, notice it's just the same calculation. But I need it over in this one because I can't do an intersects across different data sources. So it's just a, a limitation there. But the calculation still works because this buffer calculation is only based on the parameter anyways. When I, when I click on that over here on the right-hand side, you can see it's just using the buffer function and it's acting on the parameter.

46:09 But just a limitation. You can't, it's… Essentially what Tableau is trying to do is it's trying to do data blending, and it can't do that with the intersects function.

46:18 Okay. So then in my city location, I'm gonna grab the city and buffer and put that on color.

46:26 And I'm gonna get trues and falses. You can see pretty clearly where things are intersecting.

46:31 All right? But I don't wanna see the cities that are, uh, that are, uh, not impacted. So I can, I can, um, exclude the trues, or sorry, ex- exclude the falses. And when I click on another mark, uh, notice how everything moves around nice and neat, right? So I click on that line, and now I'm seeing the data just for…

46:56 Come on. It's just going a bit slow.

46:59 Guess that's another thing to be aware of is spatial parameters can be, can be quite slow.

47:04 Okay. So let me, let me, uh…

47:07 Oops.

47:09 I wanna actually hide that.

47:13 Sorry, I'm trying to clean it up a bit and see if it goes any faster. Disable. Okay.

47:18 And then, you know, I could go ahead and make these, make these red like I have in my, um, in the example I showed. So here we go.

47:28 Okay. So now we can see just the population that's impacted. And then what I can do is now that I know the population that's impacted, I can create a new calculated field, and I'll call this, um, total population, population impacted.

47:45 And what I wanna do is I want to evaluate my city and buffer field, right? So if they're in the city, I then want to get the population. Well, I'm just gonna wrap that in an integer, and because the city and buffer is a true false, that just converts it to a one or a zero. So a true becomes one, a false becomes zero. And then if I multiply that by the population, that means if it's in the buffer, I'm gonna get the population back.

48:09 If it's not in the buffer, I'm gonna get zero back.

48:12 And then I'm gonna wrap that whole thing in an LOD to just basically get the grand total.

48:19 And if I put that onto, let's see. Let's put this on the city location.

48:31 Come on.

48:39 Okay. So the good thing about that now is I can now insert that as the, um, total population impacted.

48:49 I see 41 million, right? So if I click here, notice how it doesn't, uh, it's still gonna say 41 million,

48:58 or it says 29 now. But the, uh, the city and buffer… No, that should be okay. Yep. So 29 people are impacted by that particular storm. I click on that dot there, and there's 2.3, 2.4 million people within 100 miles of whatever that location was.

49:19 All right. Um, now, one of the other things that if I flip back over, I think I've actually covered most of the things now, so I've done that. But notice I have this, like, really pretty looking map in the background. This isn't a standard Tableau map. I built this with, um, with Mapbox.

49:38 And, um, when you create your Mapbox account, you can build your own custom maps or even just use some of the ones that they already have, and, uh, it allows you to create custom map backgrounds. So I'm gonna go to background maps, and I'm going to add a Mapbox map, and I'll call it, I think they call it scenic.

50:02 Okay. And now I'll get this much nicer looking map in the background.

50:08 Okay. Um, are there any… Well, so what I'm gonna do from here then is I'm gonna go ahead and start cleaning this visualization up. So my storm path, um, so I have does the line intersect or not? Well, I want this to be more like my Next Level Tableau brand colors, which of course did not carry over for some reason.

50:26 Okay. Um,

50:30 so I don't know how to do this.

50:33 Um,

50:35 so false, I'm gonna make this, uh, the blue, and then true, I'm gonna make those red.

50:46 Okay. And now you should see those lines get a, a bit nicer color there.

50:51 And then my,

50:53 what am I looking at here? Storm measurement. I'm just gonna make these blue.

51:01 Again, just going for kind of clarity and, and simplicity. Notice none of this is, is particularly complicated, so I'm gonna go ahead and I'm just gonna do the regular thin border on this one.

51:11 Um, and then the background color.

51:14 Let's do, like, a light blue.

51:19 Okay.

51:21 And then I think I've got one other thing to fix.

51:24 What is this here?

51:27 What color is this o- oh, no, that's all right.

51:29 And then in my city locations, city and buffer, I just wanna make sure this is the same, uh, the same red color.

51:42 All right.

51:45 So again, that's how, that's how, you know, spatial parameters work.

51:49 I come in here and change that, and now I, I can see that there's, you know, 2.9 million people impacted by that, uh, by that storm.

51:57 Um, and then you wanna make sure you clean your tooltips up as well. So on this, um, on my line, for example, it has SID, which nobody's gonna know what that means and how long the storm was.

52:08 So I'm gonna go to my, um, my storm path. That's where I am there. I'm gonna take my SID out of the tooltip 'cause I don't really need that. I don't need does it intersect in my tooltip. So already my s- my tooltips are looking a, a bit nicer. But I probably wanna put the, um, uh, ta, ta, ta, Atlantic storms. I wanna go ahead and put the storm year onto the tooltip.

52:31 And then I don't have the storm name though.

52:36 Um, but I probably could put the storm name on here.

52:44 Okay. I need to actually…

52:47 So when I hover over this, I wanna see the storm name as well, but that comes from a different data source. So I'm gonna see if I can actually set up, uh, data blending for this. So edit blend relationships.

52:59 So hurricanes to storms.

53:01 Okay.

53:03 All right. So then why is it not letting me sync these across?

53:11 ABC.

53:13 Okay.

53:14 Not quite sure why that's not working. It's not letting me put, to do data blending across. Okay. It must be something to do with, um, the, the mapping or something. I'm not quite sure why that doesn't work.

53:25 But it should be able to have the storm name in, in the title as well.

53:30 And then, y- yeah, just kinda continue to clean up the tooltips and, uh, and that's what we have.

53:39 Any feedback, questions, anything that you'd like me to cover again?

53:45 I can put the chat over here on the screen.

53:47 Dennis Kao: Yeah. There was a question earlier from Jana, Jana, I ho- Jana. I hope I… I'm probably butchering your name.

53:56 Um, what are some of the ways to mitigate the slow speed caused by the layers?

54:02 Andy Kriebel: Um, use less of them.

54:07 I, I, honestly, I, I don't know 'cause it's just Tableau trying to render the visualization.

54:13 Dennis Kao: Yeah.

54:13 Andy Kriebel: None of this is a lot of data, but it's still slow. Um, I'm not sure.

54:18 I, I assume it has something to do with the way that Tableau has to render each of these layers individually.

54:23 Um, I don't know if you know the answer to that, Dennis. Do you know, have any insight into that?

54:28 Dennis Kao: No, not really.

54:29 Andy Kriebel: Okay.

54:30 Dennis Kao: But That's why you're here

54:32 Andy Kriebel: … we've not, we've not answered your question. The question is, the answer is use less layers, I guess. No, that's not a really good answer. But, um, I, I don't know, but I, I do notice the same as well.

54:45 And it happens more when it's actually a map on the background and not map layers in, uh, in particular. And I know that spatial parameters also slow things down quite a bit.

54:55 Dennis Kao: Mm-hmm.

54:57 Andy Kriebel: So this looks like it's relatively, you know, I mean, it's not fast, but it's relatively fast, um, for, uh, when I'm in the view. But if you put this up on Tableau Server or Tableau Public or Tableau Cloud, it's gonna be quite slow.

55:11 Oh, another thing that I probably should show is when I, when I click on this here, um, when I click on the line,

55:20 I have to, like… Oh, no, that's okay. Forget it. Forget what I was gonna say.

55:25 Were there any other questions? I'm, I'm just looking through the chat here.

55:28 Dennis Kao: Are there any, uh, so are there any other questions? Thank you, Andy. Are there any other questions or comments?

55:37 Andy Kriebel: Okay. Looks like we don't have anything right now.

55:41 Dennis Kao: There are folks who weren't aware of the outline function.

55:44 Andy Kriebel: Mm-hmm.

55:45 Dennis Kao: Um, or the intersect function.

55:48 Andy Kriebel: Mm-hmm.

55:48 Dennis Kao: Um, so I think that, you know, I, I mean, kind of the spatial functions kind of s- they don't get a lot of attention, I don't think. I-

55:59 Andy Kriebel: Yeah, it's interesting 'cause maps are, of course, I, I think they're the sexiest part of Tableau, but they're probably, they're, they're not really used that much in a business context.

56:09 Dennis Kao: Right.

56:10 Andy Kriebel: You know?

56:11 Dennis Kao: Right. Right.

56:11 Andy Kriebel: Certainly not as, not as much as, uh, um, you know, bars and lines and things like that.

56:17 Dennis Kao: Okay.

56:18 Andy Kriebel: 'Cause the exciting thing-

56:18 Dennis Kao: So there's some questions coming up, like in the chat now.

56:22 Andy Kriebel: Okay.

56:22 Dennis Kao: Do you see them?

56:23 Andy Kriebel: So, yeah, so Patrick, could you explain again how you added the population information? That was a separate data source, Patrick.

56:31 So I have a separate data source called US Cities. I'm not sure if that's what you mean or not.

56:36 Um, but I could go back through w- And if you're meaning the calculation with the, how I came up with the total population, um, the way that that works, I'll take you back through that again.

56:51 And oops. The good thing to, or the, the thing to remember about calculations in Tableau is they always work inside out. So you wanna find the kinda interior first.

57:02 So in this particular calculation, um, this part here is the inner part of the calculation, the city in buffer.

57:12 And then what we're doing is Tableau's then taking that function and wrapping it in this integer.

57:18 Okay? So that's basically looking at every city.

57:21 Every city in the dataset is flagged. It's either in the buffer or it's not. It's a true or a false as you go through the view.

57:28 And if it's true, when I wrap it in an integer, Tableau converts it to a one. So think about you have a column now that has a one, and you have a column next to it that's the population.

57:39 So when I multiply this, this now turns into a one or a zero.

57:44 I multiply that by the population.

57:47 So if it's in the buffer, I get the number one. Multiply by their population.

57:51 The next city is a zero. Multiply zero by their population, and I get zero, and so on. You kind of think about that going down your, all of your list of cities.

58:01 And then this LOD is just returning the sum of all of those populations together.

58:07 All right.

58:08 Dennis Kao: Another question is, if we're just plotting points where we have latitude, longitude in a CSV file, should we be using MAKEPOINT or just fi- fine, is it fine just putting the lat and long on the map?

58:22 Andy Kriebel: It's, it's probably, probably fine to just use the lat and long.

58:27 Yep.

58:28 But if you use the MAKEPOINT, you're open up, you're opening up the option for more spatial functions.

58:35 Dennis Kao: And map layers as well.

58:36 Andy Kriebel: And map layers, yes.

58:37 Dennis Kao: Yeah.

58:39 Andy Kriebel: Yeah, so, yeah, so Jonna, it's like, um, when you don't put a include, exclude, or fixed, it assumes… So this is the same exact thing as typing in fixed and then just putting in a colon there.

58:54 If you're familiar with, uh, with SQL, everything before the colon, so fixed and then whatever there, is your group by in SQL.

59:03 So if I say fixed on state, then that would give me the population in each state. So it'd be like grouping by the state.

59:10 It's just the lazy way of doing it.

59:12 Not the lazy way, the efficient way of doing it.

59:14 Dennis Kao: Mm-hmm. Yeah.

59:16 Andy Kriebel: Um, okay. Was there another question there? Are there any public data sets besides population that could fit in?

59:24 Um, I mean, y- there, yeah, there's housing data. You could have, uh, here's another data set for you. I've got one handy, actually.

59:33 There we go. Hospitals.

59:36 We can look at where our hospitals are in the US.

59:39 So let me just hit okay.

59:41 And if I now bring that in, and I have my hospitals. I wanna know, like, you know, how many hospitals are within those borders as well. So I could create another calculated field that is my, um… Nope, that's not going to work. So what I can do is I have the zip code for each hospital, so I could put that as a layer.

1:00:05 And the reason I can use zip code as a layer is because it also uses these a- generated latitude and longitude fields.

1:00:13 So maybe I'll make those a, a shape.

1:00:19 It's going, starting to go very slow.

1:00:22 And I'll make them like a little, maybe I'll make them like a red or, no, I'll make them a, I need to make them a different color so we can actually see them.

1:00:29 Okay. Maybe I'll make them orange, and I'll put the state onto detail.

1:00:33 But I have to change the state, or sorry, the country.

1:00:50 Okay.

1:00:51 So now we should start to see the hospitals pop up here. There we go. So that's all the, all the hospitals in the US.

1:00:57 And if I just wanted to know the hospitals that are in the buffer, um, let me see here. Where is that calculation? That was in the US cities.

1:01:15 And then I need to look at…

1:01:26 So this would be my hospital. Uh, actually, no, I can't do this.

1:01:30 I can't do this with the hospitals because the hospital doesn't have latitude and longitude, so that actually won't work. But I can see where the hospitals are. I can't…

1:01:40 But I can't look at just those that are, uh, in the storm path, if that makes sense.

1:01:46 Dennis Kao: Yeah, 'cause it's not-

1:01:47 Andy Kriebel: A bit of a limitation there.

1:01:48 Dennis Kao: Yeah. It's not, it's not a spatial file that you're bringing in.

1:01:50 Andy Kriebel: Right.

1:01:51 Dennis Kao: Yeah.

1:01:51 Andy Kriebel: Yeah.

1:01:53 Um, so that might be one. You could look at, uh, let's say, um, you know, where there are farmer's markets, 'cause maybe people need food.

1:02:05 Um, so that has latitude and longitude.

1:02:08 Dennis Kao: Mm-hmm.

1:02:08 Andy Kriebel: So maybe what I'll do then is I will actually just replace this data source.

1:02:14 No, I won't. Let me, let me just close that one.

1:02:23 Okay. So now I have my farmer's markets, and I can paste my calculation.

1:02:35 Yeah, see, it shouldn't take this long to copy a calculation.

1:02:43 Okay, so notice this is still, still valid, 'cause it's just using the parameter.

1:02:48 And then now I wanna use, um, market in buffer.

1:02:53 Now, notice the city location is invalid, um, because I don't have a spatial field, but I'm just gonna do that inside of the calculation this time.

1:03:02 No, I'm not going to. I'm gonna do it the right way.

1:03:04 So let's call this our market,

1:03:11 market location.

1:03:17 And this would be, what, our latitude.

1:03:21 Is it lat?

1:03:22 What's it called in here?

1:03:26 Latitude.

1:03:38 Okay, and this is an error. That's fine. That's because latitude came in as a string for some reason.

1:03:46 Okay, so now I can put my farmer's markets on there.

1:03:52 And then now I can change this to be my market location.

1:04:04 Dennis Kao: So Patrick's asking, why can you do it with the farmer's market data but not the hospitals?

1:04:09 Andy Kriebel: Um, because the farmer's market data source has latitude and longitude fields, so I can create a spatial point from it.

1:04:17 Whereas the zip code is just something that Tableau interprets as a spatial field. It's not an actual spatial field.

1:04:23 Dennis Kao: Yeah.

1:04:25 Andy Kriebel: Um, so I'm going to exclude those farmer's markets.

1:04:31 There we go. So you can't really see them that great, but let me make these, um, circles.

1:04:37 And, um, listing ID on detail.

1:04:44 Okay, so it looks like there's plenty of farmer's markets around on that storm path if there happened to be, you know, problems along the way or something.

1:04:53 So that's good. I don't know if that answers Janna's question.

1:04:57 Dennis Kao: And I totally butchered her name. It's Janna.

1:05:00 Andy Kriebel: Janna.

1:05:02 Dennis Kao: Sorry, sorry, Janna.

1:05:05 Andy Kriebel: All right.

1:05:06 Yeah, there's tons of, tons of free data. Most, most major cities have open data, um, which is, uh, can be super useful as well. Um, yeah, there's, there's tons and tons of things. I, I have so much data on my computer, it's a bit of a problem.

1:05:21 Dennis Kao: Mm-hmm.

1:05:21 Andy Kriebel: Um, 'cause I think I even have, like, you know, if you wanna layer the interstates on here, you could. I don't know where they are, but, like, US roads or something like that. You could put airports on here.

1:05:32 Um, all different kinds of things.

1:05:37 Dennis Kao: That's great.

1:05:38 Are there any final questions for Andy?

1:05:42 Andy Kriebel: Um, so I guess just in the chat, this is one thing that I ask at the end of every class that I run or every session that I run. What's one thing that you liked about today's class? What's the one thing that you liked best from this class? It helps me continue to make these sessions better each time. So I would love your feedback.

1:06:04 Okay. Very good. Thank you, Patrick. The, the outline.

1:06:08 Yeah.

1:06:09 It's kinda, it feels like overkill sometimes, Anne, to use the outline just so I can make the, the border a bit thicker. You would hope we would just be able to make the border thicker, right? That would solve, that would keep us from needing to create an extra calculation just for that.

1:06:25 All right.

1:06:27 Thank you, Kathy. That's very nice. And Dennis, the troubleshooting. Yep. That's a very common Tableau thing, isn't it?

1:06:32 Dennis Kao: Mm-hmm.

1:06:32 Andy Kriebel: It's one of my favorite parts of Tableau, actually, is the, the troubleshooting.

1:06:39 Okay. So while, while the rest of those are coming in, um, uh, thank you, Janna. Um, I'm glad you found that useful.

1:06:47 Um- So if you enjoyed this today, I've got something free for you. So I've built a free Tableau course called, that I'm calling the 30 Day Tableau Skill Building Accelerator.

1:06:58 Um, it's a 30-day step-by-step plan.

1:07:02 Uh, if you know nothing about Tableau, it'll help you there. If you know a lot about Tableau, it'll help you there as well. And by the end of the 30 days, you will have five to six different projects that you could put up on your Tableau Public portfolio. So it covers things like core foundations, so basic charts, builds, you know, building your first viz in Tableau, an end-to-end introduction into Tableau, and then we get into calculated fields and table calcs.

1:07:28 Move on to starting to build some inter- some visualizations, uh, some dashboards, so understanding containers and KPIs and how to do formatting.

1:07:36 Follow that up with, uh, parameters, parameter actions, and one final project. And then you also get access to, um, free Tableau talks that I do. So I mentioned earlier the Next Level Tableau Conference that we ran a few weeks ago. That is all up there. That's great community showcase of, uh, um, success stories people have had with Tableau at their jobs, along with other webinars that I've run and workshops.

1:08:03 Things like that are all out there in this platform. So if you scan the QR code, you can do that. Or here's a, here's a bigger version of the QR code. You just scan it with your phone. Or go to nextleveltableau.com/accelerator. You'll just fill out a little form, and it'll, um, send you all of your details. Uh, the 30-day accelerator does not expire, An- no.

1:08:27 You'll see the second week, seven days after you enroll, and then the third week, 14 days after you enroll, that kind of thing.

1:08:34 Um, and, uh, if you don't have a Next Level Tableau account, it will create one for you, so you'll just check your email to get your account set up there. So Dennis was a member before, so he has an account. So Dennis, if you logged back in, you would see these now in your account.

1:08:50 And with that, I guess there are no more questions or comments.

1:08:54 And, uh, do you see Tableau use more prevalent in the US? Well, the US is a lot bigger than Europe, so yes.

1:09:02 Okay. I guess that's it, Dennis.

1:09:04 Dennis Kao: Great. So if you can join me in thanking Andy. Thank you, Andy, so much for your time.

1:09:10 It was like watching a WatchMeViz video.

1:09:13 Andy Kriebel: Yeah, kind of. Yeah, yeah.

1:09:14 Dennis Kao: Livestream, right?

1:09:17 Andy Kriebel: Yeah.

1:09:17 Dennis Kao: Thank you so much. With all the troubleshooting.

1:09:19 Andy Kriebel: Great.

1:09:19 Dennis Kao: You know, all the mistakes and-

1:09:21 Andy Kriebel: Yeah. Very real. Yeah. Yeah.

1:09:23 Dennis Kao: Great.

1:09:23 Andy Kriebel: All right. Well, thank you very much everybody.

1:09:28 Thanks, Dennis. Bye.

1:09:30 Dennis Kao: So just really quickly-

1:09:32 Andy Kriebel: Yeah. Sorry

1:09:32 Dennis Kao: … you know, our next meeting's gonna be maybe August or September.

1:09:36 Andy Kriebel: Mm-hmm.

1:09:36 Dennis Kao: Um, let me kinda quickly. If you're interested in speaking, uh, we're always looking for speakers. Uh, if you're inter- you know, have something to present in maps, you know, please, please, please let us know. Uh, we're hoping to bring somebody who could talk a little bit about the Tableau Prep spatial functions at some point this year, so that should be really useful.

1:09:57 I haven't seen anything out there that's talks about them at all, but I know it's a, a kind of a relatively new thing that came to Tableau Prep, uh, recently. So anyways, um, um, and I think that's it. If anybody has any… you know, wants to hang out for a little bit, I'm gonna stop the recording. But Andy, if you… Are you gonna hang out for a couple minutes?

1:10:20 Like-

1:10:20 Andy Kriebel: No, I'm g- I'm going to go see my baby.

1:10:22 Dennis Kao: No, that's fine. That's perfect.

1:10:24 Andy Kriebel: Yeah.

1:10:24 Dennis Kao: Thank you, Andy.

1:10:25 Andy Kriebel: All right. Okay. Thank you.

1:10:25 Dennis Kao: I'm gonna stop the recording.

1:10:27 Andy Kriebel: Thanks, everybody. Okay, bye.

1:10:28 Dennis Kao: Bye everybody.

Shorts for this TUG

Leave a comment

Your email address will not be published. Required fields are marked *