Team DataFam Tableau User Group 4 Jun 2026
"The Lineage Elixir: Using Tableau Metadata API to Reveal the Big Picture" by Madeline Cook
57 min 9,239 words transcribed
Summary
Team DataFam Tableau User Group meeting 75, hosted by Chris McClellan. Madeline Cook, an analytics engineer in Raleigh, North Carolina, who co-leads the Raleigh-Durham TUG and Data + Women North Carolina, presents The Lineage Elixir: using the Tableau Metadata API with Admin Insights to reveal the big picture of a Tableau environment. The Metadata API supplies the relationships between content (which data sources feed which workbooks, flows and further sources) through a short GraphQL query run in GraphiQL from Tableau Cloud's External Assets; Admin Insights' Site Content data source supplies the attributes, such as project, owner, usage and refresh schedules. She flattens the JSON output with a script, joins it to Site Content twice in Tableau Prep for the upstream and downstream objects, and visualises the lineage as a Sankey. She then answers three real questions from her role: production pain points, where production workbooks depend on data sources sitting in sandbox or archive projects; phantom refreshes, where extracts keep refreshing for data sources nothing uses; and impact analysis, finding every workbook, flow and user affected when an upstream source is delayed. In the Q&A she covers Tableau Server's Postgres repository, a Gantt chart of refresh jobs, warning users before Tableau Cloud suspends unused extracts, and emailing everyone affected by a failed refresh rather than only the owner; attendees add that Tableau isn't slow, bad data modelling is.
Listen to this TUG
Prefer to listen? This meeting is also an episode of the Tableau TUG recordings podcast.
Key points
- Madeline Cook: the Metadata API gives you the relationships between content; Admin Insights' Site Content gives you the attributes about each object. Together they give full lineage.
- The Metadata API is queried with GraphQL, and you can try queries in GraphiQL from Tableau Cloud's External Assets.
- Flatten the JSON output with a short script, then join it to Site Content twice in Tableau Prep, once for upstream and once for downstream objects.
- A production workbook built on a data source in a sandbox or archive project is a governance red flag that undermines trust.
- Phantom refreshes, extracts refreshing for data sources nothing uses, cost queue time and money; find and remove them.
- When an upstream source is delayed, lineage shows exactly which workbooks, flows and users are affected.
- Lineage and site content can be given to an AI assistant to help prioritise governance clean-up.
- Tableau Cloud pauses extracts whose workbooks aren't used for 30 days; last-access data can warn owners before that happens.
- Tableau isn't slow; poor data modelling and badly built vizzes are.
Jump to a chapter (15)
- 0:00 Welcome to Team DataFam TUG 75
- 0:49 Madeline Cook: the Lineage Elixir
- 3:35 Metadata API and Admin Insights: two sources
- 6:26 How lineage works
- 9:25 Querying the Metadata API in GraphiQL
- 12:38 Flattening the results
- 14:38 Adding Admin Insights site content
- 16:41 Combining them in Tableau Prep
- 19:59 Use case: production pain points
- 29:24 Use case: phantom refreshes
- 32:46 Use case: impact analysis
- 35:47 More ideas, including AI
- 38:19 Q&A: refresh jobs, suspended extracts and failures
- 46:42 Survey: Tableau isn't slow
- 55:17 Close
Transcript
0:01 Chris McClellan: So welcome to Team DataFam Tableau User Group meeting number seventy-five.
0:05 This TUG aims to capture all the in-person and unrecorded presentations to give them a wider audience. So I don't mind where you've presented or if you've never presented before, that's fine. There's room for everyone here. Uh, get in touch and we'll find a spot for you. We just need to choose a time slot that suits both you and me, and people come and watch your presentation.
0:27 My email is team.DataFam@Gmail.com if you've got any feedback or if you want to present.
0:33 But today we've got Maddy presenting about the Tableau Metadata API, and how you can leverage that to your advantage. Whole heap about admin insights, code. I'm not sure, she's the expert.
0:47 Madeline Cook: Mm-hmm.
0:47 Chris McClellan: So I'll send– hand it over to Maddy, and you can take it from here.
0:50 Madeline Cook: Perfect. As Chris mentioned, uh, I'm Maddy. It's nice to share with you all, and today I will be presenting on the, uh, Tableau Metadata API, and how that can be used in tandem with Admin Insights to a full lineage picture on your Tableau environment.
1:06 I'm an analytics engineer based in Raleigh, North Carolina. Um, this is… Most importantly, this is my dog, Juniper, who is usually my coworker on my work from home days.
1:16 I'm a co-lead of the Data+Women North Carolina Tableau User Group, and also the, uh, Durham Tableau User Group. So if you are, um, close, come join us. Data+Women occasionally does, um, virtual meetups as well. And so, um, we welcome anyone to those.
1:35 So without further ado, let's look at a quick agenda. I'm excited to the meat of the presentation. But just so you know what's on, we're gonna talk about the goals of this solution and what I created it to accomplish. We'll talk about the building blocks as it pertains to lineage on our Tableau environment, the components of this solution, the architecture.
1:56 So I will be sharing with you some of the scripts and, um, code that can be used to recreate this in your own environment.
2:04 And we'll apply it to some actual use cases, questions that I've had to answer about my company's Tableau environment with this solution, and I'll share some resources. And then we can save questions till the end. Though, Chris, as you see them pop up in the chat, if they do, you are welcome to interrupt me, and I can take questions in the middle of the presentation as well.
2:24 All right.
2:25 So our objectives. Today, we're gonna explore how to use a combination of the Metadata API and site content, which is a published data source available to Tableau Server and Cloud administrators in the Admin Insights package.
2:41 And we're gonna be using these sources to answer questions like: What is the impact of a change to a given data source? Are there any governance red flags that I should be aware of or should care about that maybe have, uh, kind of snuck under the radar in my Tableau environment?
2:56 And, you know, can this data source be archived? These are just a sampling of the things we'll be looking at. But, uh, ultimately, what we're building will help us to answer these questions with greater confidence.
3:06 So why are we introducing both site content and the Metadata API today? And I'd like to pause here and just take a moment to, uh, get some feedback from you all. Has anyone used either of these two methods, uh, extensively, lightly, one more than the other?
3:23 If there is, uh, comments in the chat, Chris, I'll ask you to, to vocalize them since I can't see the chat at the moment.
3:29 Chris McClellan: Oh, that's okay. No one's commented yet, but I just put, "Not enough yet." I sort of know that they're there.
3:34 Madeline Cook: Okay.
3:34 Chris McClellan: I haven't used them.
3:36 Madeline Cook: Sure. So the reason we are introducing both and ultimately combining them is because they each serve a different function. We're going to talk about some definitions in a couple slides, but I do wanna make sure that the function, the structure, some of those things are clear about each, um, source for our Tableau data.
3:56 So as we talk about the function of each, the site content published data source is going to be the description for, based all of the attributes about an individual item on your Tableau environment.
4:11 On the other hand, the Metadata API is going to relate content to each other in your Tableau environment.
4:19 Technically speaking, the Metadata API can provide a lot of attributes, but I find that the site content data source is robust enough that we can combine the two to generally get all of our questions answered.
4:32 As we think about the structure, site content is predefined. So this is a data source that Tableau makes available to admins with a really strong foundation for all of those attributes about all of your objects, but it's very flat. So you're either looking at a data source or a workbook and the attributes surrounding each. You're not necessarily seeing through app content what is the downstream lineage from a given data source.
5:01 That is what Metadata API offers. So you get to define the structure based on how you query the Metadata API.
5:09 And you access this a bit differently than Admin Insights. We'll talk about that in a moment as well.
5:15 When it comes to the availability, I mentioned that site content is really easy. It's basically a, a press and play, uh, data source that's available to site admins. Whereas Metadata API does require a scripted approach. And the good news is we're gonna start with Metadata API so that we get the slightly more technical half of this duo out of the way, and I think you'll feel confident when you see the scripts.
5:40 This is nothing crazy. It's just not quite as accessible as the site content published data source. And then lastly, customizability. So that site content data source that's available to site admins is curated by Tableau. We can't make any changes to what is represented or ingested in that source. It's static, very helpful, but somewhat limited.
6:05 And on the other hand, the Metadata API allows us to write the query to customize the results that we want to return.
6:13 So that is why we are incorporating both into this solution today.
6:18 Before we get into the architecture, I want to spend a moment about data sources as the building blocks for lineage in your Tableau environment.
6:28 If you imagine one lowly data source, uh, in, in this case for the purpose of this example, we'll imagine it's a published data source living somewhere in a project on your Tableau Cloud site.
6:40 Well, that data source is gonna feed any number of workbooks.
6:44 Perhaps it feeds prep flows, which go on to create more data sources, which go on to connect to more workbooks or prep flows, which build more data sources and so on, and the lineage can spiral off of first. It ends up, you know, making us feel like it's just too much. I, I just don't know where to begin with tracking those through the relevance of a given piece of content in my environment.
7:08 And so let's talk about the components of the solution that addresses this complexity.
7:14 You've heard me mention Metadata API, but just to officially define it for us, the Metadata API discovers and indexes all of the content on your Tableau site. Whether in Tableau Cloud or Tableau Server, you'll have access to the Metadata API.
7:30 And again, this is what helps us establish the relationships between content. It requires that scripted approach.
7:39 That script to query the Metadata API is going to be written in GraphQL. This is the language that is used to query your metadata to, um, pull that in the structure that you need it for answering those questions. And luckily, GraphQL is not a created language by any means, and you'll see when we get into the metadata interface, uh, to run some of those queries.
8:05 There's also some really great built-in documentation in Tableau's Metadata API.
8:12 Now, the results of your GraphQL query are going to come back in JSON format.
8:18 That is important because that's where we introduce the Python piece to be able to parse those JSON results into something that is much friendlier, a CSV or a data frame.
8:29 And that's ultimately how we end up with our lineage data source, combined with our admin insights, and we do so in Tableau Prep.
8:39 So we're touching a lot of different pieces of Tableau today, and our tools sit beyond Tableau. But ultimately, we start and we end in Tableau. And if you've used Tableau Prep before, I think the Prep flow will make a… And I'll also be sharing a GitHub, uh, repository where I have the Prep flow, um, file for you. So as long as you can access that GitHub repo, you should have everything you need to recreate this then.
9:06 So let's talk about the architecture. I mentioned we're gonna start with the slightly more technical of the two components to this lineage, um, mashup, and that is accessing the Metadata API.
9:18 So here's a couple screenshots, but for the sake of, uh, clarity, I did do a screen recording here.
9:27 I wanna show you where you can access the API through a, uh, platform that's actually called GraphiQL.
9:35 Um, excuse me one moment. We lost our slide. So if you're in your Tableau Cloud site and you expand that pop-up on the left, you go into External Assets.
9:47 At the upper right corner, you'll see an option to query the metadata via GraphiQL.
9:54 So GraphiQL is the interface, GraphQL is the language, and the Metadata API is what you're accessing as you write these queries.
10:04 And so let's look at what is required to run a simple query against all of our published data sources in our Tableau Server.
10:13 You can see here we have, um… Let's fast-forward a little bit. Apparently, it doesn't like the pause button.
10:23 There we go. Um, so super simple query. We publish the sources, and we return our ID, our LUID, and that data source name.
10:32 On the right-hand side, I can see that built-in documentation that Tableau, uh, gives us through GraphiQL.
10:40 And notice all of the different attributes that are available for us in addition to lineage.
10:46 What we're seeing on the screen right now is a list of published data sources by their ID, their LUID, and their name, and we could go on to then indicate whether they have an extract and actually add the entirety of the downstream content to this query. So I'm gonna let this run through, and then I'm going to hop over into the GraphQL interface, uh, to show you what this looks like live.
11:14 This is our simple lineage, and this is what's available in that GitHub repo.
11:21 And this constitutes basically the entirety of what we need to know to answer questions about the use of data sources across all of our downstream content in Tableau Server.
11:33 So it's, you know, ten or so lines of code in this simple GraphQL query, and you begin to see in the JSON output all of the nested, uh, hierarchy of results returned to tell us that, you know, this, this data source called Refunds Full Prep, well, it looks like it's got a downstream data source, a downstream flow, a downstream workbook.
11:55 None of this is innately, uh, ready to be visualized in Tableau. But we do see that we've collected the data, and that is the first piece. Now, I mentioned that JSON output needs to be parsed to a CSV.
12:11 Format. This is just a quick run-through of the script that does that. Again, we're not gonna spin our wheels too much on the technical piece of this today, but I do have this Python script as well as the Graal scripts loaded into that repository.
12:29 So there you can see as output, I do use a Mac for my personal, uh, coding, and so it, it pulled it up in numbers, which is set. You can see that's a lot more ready to visualize.
12:42 And what we have is our upstream list, and then a bunch of columns describing the downstream objects, uh, are related in some way to that upstream source.
12:55 And so what we've managed to build here with this metadata query is a full picture of upstream data source to downstream content. And I had to use a Sankey chart because I think they're fun, and I think it's a great use case for this. Because we can see just how significant or impactful or perhaps not impactful, uh, a given data source relates to anything that it touches downstream.
13:22 So in that leftmost column, we have all of our, our, uh, published data sources.
13:27 This also includes embedded.
13:30 Uh, that's a secondary script that you'll find in the repo.
13:33 But we've got our published data sources, and then that middle column represents how and in what downstream content those data sources are used. So we've got a large quantity of workbooks. That makes sense. Generally speaking, you know, you'll create a data source, use it in a workbook. But in some cases, we actually pull it into a prep flow and then into another, um, data source or then into another workbook.
13:59 And so this is what that metadata query allows us to see.
14:03 But what this is lacking is the context for what about these objects that are related. Why should I care that the orders data source connects to seven different workbooks and creates five new data sources? And what does that really matter if all of that content that's downstream from that data source is maybe not even being used or perhaps living in a s– um, you know, an archive location?
14:32 So we're missing some of that, that context and relevance for the results that our lineage query has returned.
14:40 And that is where admin insights for site content comes into play. So on your Tableau Server or cloud site, if you are an admin or if you have been, uh, given permission to that admin insights project, when you go into there, you'll see a data source called Site Content.
14:59 And that is what we're going to use for the other half of our lineage equation.
15:06 This is much simpler. We don't need to script anything to access this. We just need to connect to it as we would any other published data source.
15:19 And the site content data source gives us all of those attributes about a given item.
15:25 So we've got, um, a very flat structure, but attributes like, is there a refresh connected to this data source? Um, when was the last time a given workbook was accessed? Because that also adds to the relevance and the importance of our lineage big picture. Maybe we have a workbook that's downstream from a data source whose extract refresh failed. Well, how big a deal is that?
15:52 If no one is using that workbook or, you know, if that workbook is sitting in a archive project, it's not a huge deal. If on the other hand that workbook is on loads of subscriptions and is being used for business decision-making, we have a much bigger problem on our hands when, uh, we see that upstream data source failure.
16:13 So that is the type of information that we can get from site content, and that's as simple as the second piece of our lineage equation.
16:24 Going to use a prep flow to combine our metadata API results with our site content, uh, data source. And this, this prep flow, as you can see, this is the entirety of it. Um, there's a few steps, but I think as you get into, you'll see it's really not too complicated.
16:43 Um, we have our core metadata results, and we're simply joining to that the site content data source to inform the, uh, what about or the attributes for the relationships that we've uncovered.
16:59 So this prep flow is available for you, and I've tried to do as much renaming as, uh, I felt m- helped make sense of, uh, the eighty or so columns that you end up with once this prep flow is done. But what's really neat about this is you have your upstream object or your data source, be it embedded or published.
17:22 This first half of the prep flow assigns attributes to that upstream source. So where does it live? Uh, in what project? You know, when is the last time it refreshed?
17:35 And then on the other half of this prep flow, we are providing value and attributes to the objects downstream. So this is where we take the downstream objects from our metadata query, and we give them their relevance and their importance based on the attributes that we pull from site content. So we're actually bringing site content in a couple times here, first with a join on our upstream objects to inform the location and the, the details of those, and then again on our downstream objects so that we know what is that relationship between the two of them.
18:13 And, uh, this becomes the key to discovering those governance red flags, the, um- The, the bigger lineage picture. And I've got a couple practical examples that we'll go into next.
18:26 I'll pause here a moment. Uh, does anyone have questions on the two components of this lineage elixir, we're calling it, um, before we get into some hands-on, uh, demos of how to use this solution?
18:39 Chris McClellan: Uh, there's nothing in the chat. Jacob just commented earlier that he's using Postgres database because he's on Tableau Server.
18:46 Madeline Cook: Sure.
18:47 Chris McClellan: And he asked about interacting with the two.
18:50 Madeline Cook: Yeah, absolutely. So, um, with Tableau Server, you should– you are still able to use the Metadata API, and your, um, Postgres repository will be sort of that, that piece of site content. Um, I do know that back in Tableau Server, there is greater flexibility than what Tableau Cloud allows you to do in terms of how you interact with the Postgres repository.
19:18 And so I believe Metadata API became a lot more relevant in cloud migrations to kind of create the same effect as with Postgres. Um, but it's also a solution that would follow you. So if you were to, um, set up the Metadata API on Tableau Server, it should be transferable if ever you were to migrate to Tableau Cloud. But absolutely right, Postgres is, um, a great solution for Tableau Server.
19:46 Chris McClellan: Yep, that's cool. That's all there is for now. I like the, um, the Sankey of actually showing you how everything's linked together because that's the important bit, right?
19:54 Madeline Cook: Yeah. Yeah, I like that too. I feel like it's a, it's the right use for a Sankey.
19:59 Chris McClellan: Sure.
19:59 Madeline Cook: Um, great.
20:01 So let's put it to the test, and this is where I want to apply that solution to some, um, very specific and actually, um, you know, real, real-life, these actually came up in my role, examples of how we can answer, uh, questions about our environment. So first scenario is what I'm calling production pain points. So your workbook, whatever that means for your organization, maybe has a, a prod tag on it.
20:26 Maybe it means it left the sandbox project and ended up in the, you know, top-level project. However it is you structure, uh, is, is completely up to you and can be, um, variable from company to company. But let's say you have your workbook in production, but somebody discovers that its underlying data source is actually sitting in a sandbox project somewhere on Tableau.
20:53 And that's immediately gonna raise some red flags for our users, our developers. Certainly a, uh, developer who's looking to connect a new workbook to that data source is going to be a bit confused. You can see that it is in use, but it's in a sandbox, and yet what it's connecting to is in production.
21:15 And so it can kind of rattle the, the trust in the environment and in the data sources that we're working with. Um, additionally, if leadership learns that the dashboard they've been using for decision built on a non-prod data source or something in development, that's going to really question the integrity of the underlying data.
21:37 And the question, how many other workbooks have this situation where, you know, we, we knew the data was good, so we productionalized the workbook, and then we just forgot to do the same thing with the underlying data. So let's move to Tableau for a moment, and I'll show you how we can use the solution from this combination of Metadata API and site content to answer this question.
22:02 So here we are, and I'm gonna hop over to this page here.
22:07 So production pain points. We know that we want to see is it true that anything downstream, being workbooks that are productionized, are actually connected to sources upstream that have not been productionalized.
22:24 And so I have created some folders here just to group those many fields that are the result of our prep flow.
22:32 I'll zoom out a moment and just show you what's available in here now. On account of having joined the site content to those lineage results, we have everything from, uh, description. So, uh, the prefix DOW is meant to say your, your downstream object.
22:50 So you've got descriptions. That'll be available for prep flows, workbooks, data sources, anything downstream of the source, uh, object that you are tracking the lineage from.
23:05 We've got owner emails, so that might inform questions around who owns content and should be made aware this source upstream field is going to be sunsetted.
23:17 Um, all of these attributes have their place, and this is what I mean when I say there's, there's really probably hundreds of questions that you could answer. Um, it's, it's just very case by case. What is the, um, project that we're working on, and what is the data to answer that question? So going back to our production piece example.
23:37 Uh, we know that downstream attributes are going to represent data sources, workbooks, and prep flows that connect to some upstream object.
23:46 In our example here, upstream object located in sandbox.
23:50 So I wanna know what workbooks I should be privy about, uh, as it relates to their upstream data.
24:03 We'll pull that downstream name. Now I have the names of all my workbooks in my small little test Tableau Cloud site.
24:12 And I want to see what project they're located in. So I could search for the project and see my downstream item parent project name.
24:25 Now, what I tend to do in my Tableau Cloud site, I will actually add a description to projects to tag them as in sandbox, um, add any insights. Because as you go and nest projects under other projects and under other projects, um, sometimes you lose of what comes from a, you know, an archive project. Let's say you have a subproject underneath archive, and it was just a project that got looped in there, but it had archive in the name.
24:55 Well, now you might be interpreting in, in this, uh, data the contents of that archive project as being production, and they're, they're not. So I tend to go and, and I, um, this can be scripted as well, but I'll typically go and add a description to my projects to define what state of, uh, productionalization they are in.
25:17 So in this case, I've got all of my workbook projects, and I'm going to apply that description that I mentioned to you to, uh, just keep the production projects.
25:30 Which is to say I only wanna see workbooks located in production projects.
25:39 Okay. So that shortens my list quite a bit. I have twelve workbooks that are located in my project.
25:46 I want to know which of these, in addition to the one that we discovered accidentally as part of our scenario, which of these connect to the sandbox data. So I'm gonna go and take my upstream name.
26:02 This now represents data sources upstream from these workbooks. So my executive summary dashboard has, uh, eight data sources connected to it. Um, in and of itself, this doesn't tell me where those data sources are located, though. So that's where I'm gonna go and find that description on my upstream content.
26:25 And I just want to filter on data sources where the upstream project is a sandbox location because that leaves or archive.
26:35 Um, 'cause I certainly don't want any prod workbooks connected to archived or sandbox data sources. And we can see here there are two workbooks that, uh, fall into this governance red flag area that I might want to address in closer detail.
26:52 Believe on this tab that I built out, there should be, uh, worksheet actions. So if we went and we checked out executive summary, uh, let's look at that work itself.
27:03 And the alternative to scripting these processes is utilizing, uh, the Lineage tab, which is free, but it definitely requires you to know exactly what it is you're looking for before you get there. Whereas when building data sets and, you know, visualizing those results, it's a lot easier to actually proactively identify areas that, you know, maybe require some additional attention.
27:28 So here's that executive summary dashboard, and here I can see my four connected data sources.
27:35 One thing that I will mention is that the metadata script only have only direct connected data sources, so the four you see here, but also any that are further upstream from the workbook. So these data sources, at least one or two of them, or in this case, all four, in fact, they all have prep as the suffix. They connect to other data sources because they are the result of prep flow that uses our data sources as inputs.
28:04 And that's how we go from four data sources in this tab to the eight data sources that we see in the lineage view.
28:13 And this is important, you know, in looking at impact of these four data sources.
28:19 Uh, data prep flow, not a huge deal. Um, you'd know to make it your workbook in response to the change you made to your prep flow.
28:28 But what if you're changing the data sources that act as inputs for the prep flows that then produce an output that is used in your workbook? Um, this is where that lineage can really spider web and get kind of crazy. And, um, that's what I like about the way that Tableau allows you to query the metadata, is that it does show you that full comprehensive, holistic picture of all of the source that were, um, used in the make of a given workbook.
28:58 And so this is where we see that a couple of these are in sandbox. This one, it looks like campaign efficacy, uh, that one never made it out of sandbox. So that's a problem for my, you know, imaginary organization because I don't wanna have any production workbooks built on top of data sources that have not also been promoted. So phantom refreshes.
29:21 Uh, extract refreshes on obsolete data are not free. Uh, data sources come and go, but sometimes their extract refresh schedules stay forever. So perhaps you have found or identified a scenario in which your data source still on its extract refresh schedule. This is even more important or significant when you're, uh, not just connected to USB like I am in my little imaginary, uh, kind of test Tableau work.
29:48 But if you're connecting to Snowflake, for example, and you're running large extract refreshes against Snowflake data, that's all tallied into your compute. I want to be especially aware of how we are using compute and whether it's actually business critical. So in this case, uh, for this scenario, we're talking about refreshing extracts that are obsolete or don't really support production reporting, where again, that risk is compute costs incurred, resource blocks consumed if you're running a Tableau Prep flow that doesn't have any downstream relevance, and ultimately jobs piling up.
30:27 In queue behind a data source that's really not that important. It just kind of capitalizes on a couple minutes of your morning every single day.
30:36 And so that's what this example, uh, will show us. So in this case, we're calling a phantom refresh an upstream data source that is on a refresh schedule that doesn't have anything downstream in production.
30:52 So let's grab our, uh, extract refresh.
31:00 And set this to true to say, show me my data sources that do have an extract refresh schedule associated with them.
31:11 Any workbooks– In fact, while I'm here, I'm gonna grab the names of those data sources. Cool. So I've got two on a schedule.
31:18 And then show me the workbooks downstream or, or let's say, um, workbooks, prep flows and other data sources downstream from this. Because ultimately, if this is used in any of those types of content, and they exist in prod, I'm good with the schedule continuing to run.
31:39 So it's used in– Both of these sources appear to be used in… This one's used in a workbook. This one perhaps not used in anything at all downstream.
31:54 I'll grab the downstream name, and why don't I throw the downstream project in there too, just so that we can confirm that at least in the second case, we have a good reason to be refreshing the extract.
32:07 Looks like for both of these data sources that are on a refresh schedule, they connect to either nothing, as is the case with the, uh, sales data source. It looks like I even named it obsolete_sales, and I forgot to remove it from the extract refresh schedule.
32:26 And in the case of the sales team insights data source, we see that connects to a single workbook, but that workbook is actually located in a sandbox. So these would both be candidates for taking it off of that schedule and freeing up that compute or resource block or whatever it is that's being consumed for no apparent production purpose. And then finally, impact analysis.
32:49 And both examples we've looked at so far and much of what we've discussed fed into this concept. But at a broader level, let's say a delay has been confirmed. Your Snowflake team has let you know that there was a, a break in one of their streams or delay, and as a result, anything in Tableau that points to that Snowflake table is also going to have a lag when it comes to fresh data.
33:14 The significance of that could go– could range from almost insignificant if in fact you don't have any workbooks that utilize that data that's delayed, to really significant if you have subscriptions that have already fired off in the morning and are, you know, reaching the inboxes of executive leadership with stale data. So there's some damage control that needs to be done in response to delays, and that impact isn't always cut and dry.
33:42 So the risk there being when there's a gap alerting you as the, uh, admin or sometimes even the, you know, owner of the workbook are the last line of defense between those decisions made on good data and those made accidentally or under the guise of good data on data that was actually then delayed.
34:02 So for our last scenario, we'll hop back over into our workbook and look at how, uh, our impact analysis worked. So in this case, I-I've– I'm gonna just leave these fields populated here for us. We can see, uh, something more akin to what we had built here with our metadata Sankey chart, but we have all of the, uh, additional information surrounding attributes of those upstream objects, relevance of the downstream objects.
34:31 And this is where we could say, if a delay happened on a data source upstream, what should I know about the, uh, last accessed timestamp on the workbooks or prep flows that connect to it?
34:45 Maybe in this case, we had a delay on, you know… Let's go back a little bit.
34:52 Let's say we've had a delay here on our orders English prep data source. Um, now this is the output of prep flow, but maybe we've been informed that an input to that prep flow was delayed, and so this is now outdated data.
35:07 And I can see that based on the last access date for the workbook, looks like they were used about a month ago. So no one I need to notify immediately. Um, this might also raise a question around why is this workbook not being used on the regular?
35:22 Um, but this is just a-another example of how this solution can be applied to a, a scenario in which you wanna know kind of everything going on in your environment. And I'm sure those of you who are savvier with Sankey charts than I am, uh, could go on to incorporate some of that site content detail into a Sankey chart and get kind of the best of both worlds with the, um, lineage relationships and also the attributes.
35:48 A couple other things that could be solved for with this solution, and I would love to know if you have run into similar, uh, or different questions that you suspect might also be answerable with this solution. I'm always looking for different ways to apply this. But a few other items that came to mind are, you know, which data sources have gone stale but still have active downstream consumers?
36:12 Which workbooks haven't had any views in sixty days but are still connected to live refreshing data sources?
36:19 What are our top used data sources, and are they actually our top used sources if we consider that, you know, they're only, they're only important if they're connected to, uh, content that's in development or in prod?
36:32 And then of course, uh, kind of an AI opportunity and something I've been wanting to do once I have, uh, you know, all of my data sources built out at my org, uh, provide it to Copilot or Claude and say, you know, "Here's what you should know about how our organization determines content to be ready for production. Here's what we consider a governance red flag.
36:54 Here is the data about our environment, both from a relationship lineage perspective and also from a, a attribute perspective.
37:02 Where should we start with cleaning up our governance?" So much you can do there in equipping AI with the context that you're pulling from this, uh, this lineage solution.
37:15 So that wraps up the… my presentation. I do wanna link a couple resources here. The left QR code is the, uh, GitHub repository.
37:25 I'm rather new to GitHub, so I'm gonna be making changes and pushing versions of things up as I go. But that is gonna c- contain the baseline Python script, GraphQL queries, and prep flow file you can use in your own environments. And then, uh, just the Tableau documentation for getting started with the Metadata API. Uh, it actually makes for interesting reading.
37:50 If you've not used the Metadata API, um, it's pretty powerful. And again, that's the critical piece to our relationships. So those are the resources I had to share. And thank you all so much for listening. I'm happy to take any questions. Uh, and additionally, feel free to reach out if you do come to a point of trying to implement any of it.
38:10 I love talking about this stuff more than I probably should, so I'm here for questions and brainstorming if, uh, you are interested. Thank you so much.
38:20 Chris McClellan: Uh, so Malena's question was, what about developing a dashboard that will display job refreshers and which databases they're connected to using a Gantt chart format?
38:30 Madeline Cook: Yeah. So let me show you what… If, if we have time for it, Chris, I can show what's available in, in the solution that we've got here and a way we could extend this further. And I'm not gonna build a Gantt chart on the fly, but I love that idea.
38:46 So depending on what…
38:49 how detailed you want that information about the database type, let me show you what we can access.
38:55 So this is our upstream name, representing of course our data sources, both embedded and published.
39:06 Um, this does have type, so that if you are using embedded data sources, uh, you can distinguish data source type.
39:21 My organization tend to use published data sources because of the reusability of them. But, uh, let's, let's take any of these here, and I'll grab some of that database in here.
39:35 So the field that we have from the site content is database type, which is going to be… I don't have a Snowflake example in my data, but you can see it's correctly identifying test files, hyper files, which are the result of those prep flows, Google Drive files.
39:53 I will say that what the site content lacks, uh, it gives you that type, but it's going to lack the actual connection details. And so another piece of, um, the solution that I've built at my current company that I want for this purpose and for kind of my personal GitHub, because I do think it's important, is to know not just what data source, database type, but also which environment.
40:19 Did it come from our Snowflake environment or our sandbox environment? Um, obviously that's important. A- and that's another governance check to make sure that before you tag or promote a source to production, that it does in fact connect to underlying data that's in its own respective environment.
40:37 I don't know if that helps. I think it's a fantastic idea, and I… it, it is partially available with, um, this site content, but there's another metadata script that we can write that I'll be uploading to the GitHub soon.
40:51 Chris McClellan: Mm-hmm. And, and sorry, I was just gonna say while you're there,
40:56 um-
40:57 Madeline Cook: That's all right
40:57 Chris McClellan: … depends if you wanna share again or not. Um, but a few questions I had. So I, I have a few clients where they're using Tableau Cloud, they've got a daily-
41:08 Madeline Cook: Mm-hmm
41:08 Chris McClellan: … extract refresh.
41:10 So if they don't-
41:11 Madeline Cook: Yeah
41:11 Chris McClellan: … use any related workbook for 30 days, the extract pauses.
41:18 Madeline Cook: Yeah.
41:18 Chris McClellan: That's just-
41:18 Madeline Cook: Yes
41:18 Chris McClellan: … a Tableau Cloud thing.
41:20 Is there any way to show how long that will be until it's suspended, sort of to give-
41:25 Madeline Cook: Ooh
41:25 Chris McClellan: … more people a warning?
41:28 Madeline Cook: Yeah.
41:28 Chris McClellan: That sounds reasonable.
41:30 Madeline Cook: I love that idea. So I would say yes, and we could do that in the form of, uh, data-driven alerts, right? So if we have, um, we have the metadata which tells us when was the, when were the downstream objects last accessed,
41:46 we could define that threshold. We know that it's 30 days. Maybe we have, uh, a… Right now I know the data-driven alerts require you to have the numeric axes. So if you were to set something up that says, "Hey, as soon as we hit that 25-day mark in terms of the last ac- timestamp on the downstream object, let's, um, send an email to, you know, the, the owner of that data source, um, to say, 'This is about to be decommissioned.
42:14 The next extract is about to be shut off.'" I think that's a…
42:17 Um, and I also think it would put a little bit of, uh, you know, it would help motivate workbook owners who wanna make sure that when their users end up in their workbook, that data is in fact fresh. I love that use case.
42:30 Chris McClellan: Yeah, definitely.
42:31 And, and the other thing which I think would be an easier one is, um, when an extract fails. So as you were saying-
42:37 Madeline Cook: Yeah
42:38 Chris McClellan: … when you, when you've got an extract that's, that's scheduled that points to Snowflake or something and, and there's some sort of connec- connectivity issue, at the moment in Tableau Cloud, it's only the owner that gets the email saying that it's failed. No one else does.
42:53 Madeline Cook: Yes.
42:53 Chris McClellan: But I think you could fashion that a different way to say, you know, I can actually email a group because-
42:59 Madeline Cook: Mm-hmm
42:59 Chris McClellan: … I know the extract's failed.
43:01 Madeline Cook: Yeah, exactly. And I know who is of, you know, the impacted content downstream. Um, so certainly-
43:08 Chris McClellan: Mm
43:08 Madeline Cook: … that's a great call.
43:09 Chris McClellan: Yeah. And, and the downstream warnings that you showed were pretty cool as well. It's just like, yes, that's, that's what you need to do, is, is be able to understand that lineage to go through to say if there's a failure here, it's going to impact, you know, everything that follows after it.
43:24 Madeline Cook: Yeah. Yeah, and I think what's… You know, though, though there may be, depending on how scripted or automated you wanna take the whole process, even if a solution like this gives you, it adds the research portion of responding to-
43:39 Chris McClellan: Mm-hmm
43:39 Madeline Cook: … um, upstream issue. Right. So I've, I've actually taken this at my own org and added a email action, um, at the end of this whole workflow to say, "If you are a user of these reports in the last week, and aware a failure happened today," just gonna highlight your names, and it's gonna populate an email, and I can just kind of, you know, send, send the email to the impacted parties.
44:04 So there, there's still a manual component there, um, because we, we just haven't scripted out to that point. But the research is much easier because I get a snapshot of anything that, um, does matter to my users.
44:17 Chris McClellan: Yeah, definitely. Very cool. Very… A, and subtle way of using Tableau on itself to give you the, the answers that you need to-
44:24 Madeline Cook: Mm-hmm
44:24 Chris McClellan: … all that sort of stuff.
44:26 And Malena was just thanking you for the demo as well. It's good to see some of that stuff.
44:30 Malena Harrang: Yeah. Thanks, Madeline. I was just gonna chime in to say if we could go back to your GraphQL query.
44:37 Um, I just would love to see that again.
44:41 Madeline Cook: Sure. Sure.
44:42 Malena Harrang: If that would be great. But only if we have time, and I was just, uh, curious.
44:48 Madeline Cook: Yeah, absolutely. I can even just drop it right in the chat if you would like. This is what I run for published data sources, and I've got a similar one for embedded. Uh, the format got a little funky in our chat, but, um, if that doesn't, if that doesn't help, um, I am glad to share my screen again. Perfect.
45:09 And let me also share-
45:10 Chris McClellan: And all that'll be in your GitHub repo anyway, so.
45:12 Madeline Cook: That's right. Yep. So in fact, let's make sure you can all access this.
45:18 Here's the GitHub link.
45:21 Hopefully I made it public correctly. Like I say, I'm a little bit newer to that. But, um, in that location you will see scripts, and inside the scripts folder is the PDS, which stands for metadata source lineage, uh, metadata query, and PDS, which is published data source lineage, and then that Python file which will combine the two.
45:46 Chris McClellan: Awesome. Cool, cool. So here's all Maddy's contact details.
45:50 Obviously, the important things, LinkedIn and two TUGs. You co-lead two TUGs. What is it? The, the Raleigh-Durham TUG and Data+ Women North Carolina TUG.
46:02 And I think if Anne's still on the call, Anne does the Data+ Women West Coast TUG as well, so all good.
46:09 Madeline Cook: Awesome.
46:11 I may have to figure Anne in on all the things that have worked for you all.
46:16 Chris McClellan: And Jacob's saying, "We have so many Data+ Women TUGs all around the world in a whole heap of different languages," and it's pretty cool as well.
46:22 Madeline Cook: Love that.
46:23 Chris McClellan: I, I like in-
46:24 Madeline Cook: I'm so excited
46:24 Chris McClellan: … in YouTube where I actually…
46:26 I, I always in YouTube make it as the proper language so then you can actually go back and watch the closed captions in English, so you can actually see what they're talking about.
46:36 Madeline Cook: Nice.
46:36 Chris McClellan: Because I only know English.
46:37 Madeline Cook: That's so cool.
46:37 Chris McClellan: And it… Yeah.
46:38 Madeline Cook: It bridges the-
46:40 Chris McClellan: Translation works well
46:41 Madeline Cook: … bridges the gap.
46:42 Chris McClellan: Okay. So we'll move on to the next part of the session today, which is survey time. Okay. So if we move over to Mentimeter, just grab your phone, scan that QR code, and there's just a few quick questions that we can answer via our phones just to get a quick audience survey of some questions.
47:03 People will know that there's some regular questions that we ask all the time. There's some questions that we ask differently every day. So the easy questions that we ask all the time: Where do you live, state and country? Just so we've got a rough idea where people are coming from today.
47:19 So in the US, Virginia, California.
47:24 In Australia, two people from New South Wales that I can see.
47:28 Uh, North Carolina in the US.
47:30 So a good spread, which is good.
47:34 Uh, the second question is: What industry do you work in?
47:38 Just so we can see what, uh, Tableau can be used for.
47:44 So automotive, insurance, finance, consulting, government.
47:51 Basically everything.
47:52 And the final question of our standard questions, there's a few questions to go: How many years have you been using Tableau?
48:01 'Cause there's always a good mix of who's been using Tableau for how long, and today we've got a lot of people that have been using it for more than nine years, and then one person in the six to eight category. No newbies today. Because the TUG the other day, there was a lot of newbies and not so many experienced people. It changes all the time. That's the cool thing about it.
48:21 Okay. The unique questions for today: What's your favorite Tableau Python library? I thought Maddy was gonna be talking more about Python, and she sort of skipped over it, but that's cool.
48:32 Maybe people don't code in Python.
48:37 And that could be the right answer yet, right? Haven't really used one yet. Holy Grail or Tableau Server client, which is probably one of the most used libraries, or whatever an LLM recommends is what someone else said. And, and you don't need to code in Python sometimes, so that makes it easy.
48:53 Uh, question number two: What's one thing you wish more people understood about working with Tableau?
49:02 So someone says it's not Excel on steroids. That's the best answer, isn't it?
49:08 Data prep.
49:09 Bad data is, does not mean bad Tableau. That's the good old garbage in, garbage out. Make it busy.
49:16 Jacob Rothemund: I can… Sorry, I can jump on mic now. Um-
49:19 Chris McClellan: Sure. Go for it.
49:20 Jacob Rothemund: Yeah, the, I was gonna type it, but the one that's been eating me up is people at work saying Tableau's slow.
49:28 Um, and-
49:29 Chris McClellan: Mm
49:29 Jacob Rothemund: …
49:30 I kind of go back to them like, "It's, it's not Tableau that's slow, it's your data modeling that is the problem," and that's what we need to try and unravel.
49:40 Chris McClellan: And it's hard, right? I, I see people saying, "Oh, Tableau can't handle over a million records." And it's like, well, I've got workbooks that easily process 100 million records. It's about building the visualization properly, because I can kill Tableau with 10,000 records if I want to.
49:59 Just build a bad viz.
50:01 Ann Stolzman: I mean, I have things that are using map layers or were using map layers that had over 11 million rows of data in it.
50:09 Chris McClellan: Oh.
50:09 Ann Stolzman: And it was zippy because I was using an extract and I prepped my data properly, so.
50:14 Chris McClellan: Sure.
50:15 Same, same answer, right? It's like Tableau is not slow. It's like if you, if you try and do the wrong thing with Tableau, you can make it slow.
50:23 Um, don't do the wrong thing. Try and do the right thing. There's always that balance.
50:28 Ann Stolzman: Your mileage may vary.
50:30 Chris McClellan: Um, Jeff's saying in the chat from a few minutes ago that API will bring out the more experienced users.
50:36 Um, yes, but also, uh, I think with a lot of LLMs these days, if you want to code something, you've just got to be able to tell the LLM what you want, and it can write the code.
50:48 Jacob Rothemund: Mm.
50:49 Chris McClellan: And some of the Claude stuff is just scary how good it is, but you still need-
50:54 Jacob Rothemund: Sure
50:54 Chris McClellan: … to check it all the time as well.
50:55 Jacob Rothemund: But, but having API in the title will tend to make the newbies wanna stay away.
51:01 Chris McClellan: Yeah.
51:03 Well, and I think Maddy will agree, it's a fairly niche subject as well, right? We're sort of leaning on the admin side more than the, the general user side. Um, you need some admin access to do this, and only admins are interested in doing this.
51:17 If I'm just a general user, I don't really care that, you know, a data source is bad or in the wrong place or something, but an admin somewhere should care about that stuff. That's what their job is. Question three: what's the most valuable piece of Tableau advice you've ever received?
51:35 So tougher question, less answers. But, uh, someone says, "Prep your data and extract well." Someone says, "Use the data properly." And no more answers yet. That's fine.
51:49 And there's no wrong answers, it's just we're looking after advice or looking for advice.
51:54 You should engage more with the community. Interesting.
51:58 What does this data show is not a good starting point, or validate.
52:03 But a lot of good advice there of just what to do properly.
52:07 Okay. Next question.
52:10 What's your most controversial Tableau design opinion?
52:14 And I've put this as a text box so you can type in more things.
52:21 And someone says, "Always use PDS, published data sources, and extracts." Another comment is, "I need a good reason not to use bar charts." I'm not gonna name names, but someone said yesterday that all their Tableau work is just building either a good bar chart or a good line chart, and you don't need anything else.
52:41 Um, another comment is donut charts are better than pie charts.
52:45 'Cause they've got a hole in it, right?
52:47 Or in some other software, it's the same thing. A pie chart, there's no difference between a pie chart and a donut chart, it's just the size of the hole on the inside.
52:57 You might use that software. You might know what I'm talking about.
53:00 Okay, we'll move on.
53:02 Do you prefer to use parameters or filters for user input?
53:06 And I was fair with everyone and put it depends there as well.
53:11 And so there, just everyone votes for it depends.
53:14 And the last two questions are, that are basically here to help me, is what topics should be presented at a future TUG meeting?
53:21 I never answer these questions. I wanna know what you guys think.
53:24 And no one's gonna reply. That's cool.
53:28 Jacob Rothemund: I've missed so many that I feel like, uh, anything I'd guess you've probably already done.
53:33 Chris McClellan: Hey, we repeat stuff all the time as well, right? We had two map layers presentations about six weeks apart that were two completely different presentations.
53:42 So trying to keep up with the amount of content that all the TUGs produce, um, we'll talk about that in a minute, but, um, there's a lot of stuff out there.
53:51 That's why Jacob built his dashboard to try and keep track of all this stuff, right? So what do people wanna see? A Tableau Next success story.
53:58 That's interesting. I know someone who might be able to present that.
54:02 And designing for yourself versus designing for the business.
54:06 And obviously the question leading on from that is…
54:10 Sorry, and someone just put in something related to movie or TV data. Depends on how new you are to Tableau and Tableau Public, but there was a project a few years ago with Data+ Movies, and then I think there was, was there a Data+ TV one as well?
54:24 Um-
54:24 Jacob Rothemund: Yeah, there were.
54:25 Chris McClellan: There's a lot of… Yeah. But there's a lot of data-
54:27 Jacob Rothemund: Both use data. IMDb data set.
54:29 Chris McClellan: Yeah. But there's a lot of data out there related to that sort of thing.
54:32 And obviously the next question is, who would you like to see present at future TUG meetings?
54:38 Question is just as tricky, right?
54:41 And there's no answers to that. Maybe it's too early in the morning, maybe it's too late in the afternoon. I don't know. It doesn't matter. That's fine.
54:48 So the next TUG meeting is Fraser talking about building KPI dashboards leaders actually use. It's a repeat from TC 26.
54:56 All those times, it's just one meeting. I just put all those different times up to see what part of the world you're in as to if you can attend. Obviously, if you're in Europe, it's a little bit hard. You'll watch the recording. Uh, if you're in the US or Australia, it's a lot easier time slot.
55:12 But, um, put that in your calendar, use the QR code, or go to the Tableau Use Group website to register for that meeting.
55:19 But that recording, this meeting, everything else that we do, and a whole heap of other online TUGs, including a whole heap of Data+ Women TUGs obviously, they're all on YouTube at Team Data Fam. There's also an audio podcast on Apple and Spotify if you need to listen rather than watch.
55:38 Obviously, today was one of those sessions where you need to watch what's going on.
55:42 But I find I listen to a lot of them as well and then come back to the bits I need to see, because hopefully I'm spending time away from my computer and I can just listen to TUGs at the same time. Uh, if you've got any questions, if you want to present, or if you've got any other feedback, please email me at team.DataFam@Gmail.com.
56:00 But thank you, Maddy, for today's presentation. It was awesome to see the, the technical admin side of that, how to use the, what? The GraphiQL. I, I think that's had a rename, but, uh, that's pretty good. And, um, and how to build all that so you can build it in Tableau to see that admin level that you can see as well. So thank you for your time.
56:21 Madeline Cook: Thank you for having me.
56:22 Chris McClellan: Awesome.
56:24 And, and that's it for today, guys. So that's the end of the, of the meeting for today.
56:29 Jacob Rothemund: Thanks for asking.
56:30 Madeline Cook: Thanks so much. Take care.
56:30 Chris McClellan: Thanks a lot. Okay, see you soon