From the course: Complete Guide to Tableau for Data Scientists

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Analyzing spatial data using intersect calculations

Analyzing spatial data using intersect calculations - Tableau Tutorial

From the course: Complete Guide to Tableau for Data Scientists

Analyzing spatial data using intersect calculations

- [Instructor] Tableau's spatial functions allow us to answer questions about the geographic portion of our data that otherwise be really difficult to answer. So for example, I've got 30 locations of my stores and I want to know how many of these stores lie within a certain radius of my main store in LA. Now, in order to do that, I would need to convert this into spatial data and then ask Tableau to do those calculations for me. So the first step is to create some spatial objects for each one of my stores. For that, we're going to use the MAKEPOINT function. So let's create our calculated field. We'll call this store locations and we'll use the MAKEPOINT function. And this is going to create our store locations. And this is going to use the destination latitude and the destination longitude. I then need my LA store. So again, we can do a calculation and we'll call this my LA store. Now its location is the origin latitude and longitude. So again, I'll use the MAKEPOINT and we use the…

Contents