Bengaluru Tableau User Group 28 Sep 2026
B-TUG Virtual Meetup Sep 28th 2026
52 min 8,736 words transcribed
Meeting: B-TUG Virtual Meetup Sep 28th 2026
Summary
Session 8 of the Bengaluru TUG's 2026 meetings was planned as an in-person event and moved online. Co-lead Jacquelline Antony introduces two speakers: Boris Bakhvalov, founder of Vizuators, on Loupe for Tableau, and the group's own Ravi Kumar N on designing for speed.
Boris, a Tableau practitioner since version 4, presents Loupe, a dashboard extension for Tableau Server and Tableau Cloud that answers "why did this number move?" inside the dashboard. It runs under the asking user's own token, respects row-level security, passes filters and parameters with the question, and lets you bring your own LLM (DeepSeek in the demo, on a Superstore workbook). He explains why Loupe is deliberately limited to one dashboard or published data source: pointed at a whole Tableau Server, the model produces hallucinations and wrong answers. In Q&A he shows Loupe declining to guess at external factors such as holidays, describes how it reads business context from the published data sources rather than training a local LLM, and explains its security model for banks: dimension values are encoded before anything reaches the LLM and decoded back inside the company, so the model only ever calculates numbers.
Ravi's talk argues that dashboard performance is a deliberate design choice. Users give a dashboard six to eight seconds before their attention drifts, and the right fixes can take a 40 to 50 second load to under five. He walks through what happens when a dashboard loads (VizQL pulls the workbook, parses the layout, fires many queries in parallel, then renders) and four blocks of best practice. Data: native connectors, Hyper extracts, the right grain, calculations pushed upstream, and relationships before joins before blending. Calculations: CASE over IF chains, MIN or MAX instead of ATTR, numbers and Booleans over strings, the IN operator, and caution with COUNT DISTINCT. Filters and worksheets: fewer quick filters, no high-cardinality filters, "All values in database", an Apply button, low mark counts, and one reused sheet instead of duplicates. Dashboards: a fixed size so Tableau can cache, fewer views, hidden detail sheets, tidy containers and no unused device layouts. He closes with "don't guess, measure": run the Workbook Optimizer, then a performance recording, and remember that a dashboard that is slow on Desktop will be slow on the server too.
Listen to this TUG
Prefer to listen? This meeting is also an episode of the Tableau TUG recordings podcast.
Key points
- Loupe for Tableau is a dashboard extension for Tableau Server and Tableau Cloud that answers questions about the dashboard you are looking at.
- Loupe runs under the asking user's own token and respects row-level security; you can bring your own LLM.
- Scoping the AI to one dashboard or published data source avoids the hallucinations you get when pointing it at a whole Tableau Server.
- For sensitive data, Loupe encodes dimension values before they reach the LLM and decodes the answer inside the company.
- Dashboard performance is a deliberate design choice, driven by data, calculations, worksheets and dashboard layout.
- Users wait about six to eight seconds before their attention drifts; a 40 to 50 second load can often be brought under five seconds.
- Relationships are faster than joins, and joins are faster than blending.
- Use MIN or MAX instead of ATTR when duplicates are not a concern, and prefer numbers and Booleans over strings.
- Every quick filter and every chart is a query; add an Apply button and avoid high-cardinality filters.
- Fix the dashboard size so Tableau can cache it, and drop device layouts you don't use.
- Don't guess, measure: use the Workbook Optimizer and performance recording. Slow on Desktop means slow on Server.
Jump to a chapter (22)
- 0:00 Welcome and speaker introductions
- 1:21 Boris Bakhvalov: Loupe for Tableau
- 3:14 Tableau Agent vs Loupe
- 4:41 Demo: Loupe on a Superstore dashboard
- 10:01 Why Loupe is scoped to one data source
- 10:31 Asking questions of a data source
- 11:37 Q&A: external factors and hallucinations
- 13:53 Q&A: business context and data quality
- 17:14 Q&A: data security and encoding
- 19:00 Ravi Kumar N: designing for speed
- 21:26 In a nutshell: performance is a design choice
- 25:26 Why dashboard performance matters
- 27:28 What happens when a dashboard loads
- 28:43 Data best practices
- 32:04 Calculation best practices
- 35:35 Filters: order of operations
- 37:52 Worksheet best practices
- 39:57 Dashboard best practices
- 42:44 Don't guess, measure first
- 44:21 Where to start fixing
- 46:31 Demo: performance recording
- 51:23 Wrap-up
Transcript
0:01 Jacquelline Antony: So hi everyone, and welcome to our, uh, in-person– sorry, a virtual event. We were supposed to have this as an in-person event, but, uh, things have changed, plans have changed, uh, and we decided to keep it virtual. So thank you all for, uh, taking out this time and, uh, joining us on the session here. We have two wonderful speakers with us today.
0:26 Um, we have, um, Boris from Kazakhstan.
0:34 Um, he's, uh, currently working with the Vizuators. He founded the Vizuators in twenty fifteen and, uh, is going to talk to us about Loupe, an agent that's created, uh, in Tableau.
0:48 And, uh, we'll, uh, we'll understand a bit more about how KPIs change, uh, change and why they did, and we'll see a live dem-demo as well. And the second speaker is Ravi, one of our own.
1:02 Uh, he is, uh, as you know, working in Dubai, and he will be speaking to us about how to speed up, uh, dashboard design, uh, and, uh, best practices and strategies for a quick deployment.
1:16 So that's the very, very short version of the introduction. Uh, over to you, Boris.
1:21 Boris Bakhvalov: Okay. Uh, thank you, Jacquelline. Uh, hello, everyone. A couple of words, uh, about my past in Tableau. I started with Tableau in two thousand and six.
1:32 So I, I remember version four and so on and so on. So we have a team, uh, specifically in the niche of Tableau development and end-to-end, uh, boutique company who is, uh, providing services, uh, from DVH and, uh, so on to, to, uh, BI and Tableau. Well, um, what we've done with our team, we developed the Loupe.
2:00 It is not novice, uh, about developing any extensions for Tableau, especially in, uh, artificial intelligence area.
2:10 Uh, Tableau itself, uh, has already agent and so on, but we started it before Tableau started the agent. And our goal was, um, create such extension to be able to work on Tableau, not only Tableau Cloud, but Tableau Server as well.
2:28 So, um, usually, uh, whenever analysts create a dashboard, they're interested in what's happened inside. They develop, uh, and build and design good and, uh, polished dashboards, uh, very nice, uh, charts and graphs and so on. But what's inside, how the KPI is moving and just any, any digits. So, um, usually dashboards, uh, that it's what does this dashboard say?
2:57 This is like a data story. But we, uh, trying with a Loupe, uh, going forward and ask questions as to the data and data sources and dashboard itself. Why did this number move?
3:08 Um, I just skip a couple slides and, uh, go directly to, uh, comparison between Tableau agents and dashboards. I, I hope everybody tested already Tableau Agent and the Loupe.
3:24 Um, it runs. Where it runs? Uh, in Tableau Agent, this is a cloud and desktop, and right now they're running a pilot for server. But we already done, uh, Loupe for server and cloud. Later I, I'll provide, uh, some demo on, um, uh, sample Superstore dataset.
3:47 Uh, one more. Who the query runs as? It's, uh, uh, they're asking users own token. So you can, uh, you can connect own LLM system, just DeepSeek, uh, Tropic, uh, ChatGPT, and so on.
4:02 Um, most important, uh, we connect and running under row-level security. This is, uh, very important, uh, feature, but we develop it and it's on, uh, Loupe right now.
4:17 Um, model.
4:20 For Tableau Agent, this is regionally aware of LLM, and we– you– in the Loupe, you can bring your own. Actually, I provide, uh, later the link to the website. You can try by your own how the Loupe works.
4:35 And also, uh, Loupe, uh, supports all, uh, filters and parameters.
4:41 So if you don't mind, I just change view to, uh, Loupe itself. I can share then this short presentation.
4:49 Okay.
4:51 So here's a website. I can then copy and paste in the common chat.
4:56 So, uh, you can watch a demo or, uh, see it by yourself. So open dashboards. This is a simple, uh, package of dashboards done on, uh, Tableau provided test data
5:21 set. So this overview, customers, shipping, and so on. This is common data from Tableau from the box, right? It's we've done some just dashboards.
5:34 And here you go. Here the, uh, AI assistant right now thinking and connecting to, uh, DeepSeek in, in our testing case.
5:44 Work, you can add it into your Tableau Server, and, uh, here's the, uh, just, uh, detailed instructions how to implement it yourself.
5:56 Uh, something's wrong with internet maybe.
6:00 Let me run it again.
6:10 While it's running, maybe you have any questions so far?
6:20 Ravi Kumar N: So where is this, uh, agent hosted, Boris? Is it something that, uh, we'll have to integrate into our, let's say, in-house environment or how, how does the connectivity work?
6:31 Boris Bakhvalov: It is, it i- it, it is completely in-house. Uh-
6:34 Ravi Kumar N: Okay.
6:34 Boris Bakhvalov: You can implement on, in, uh, at your Tableau Server and connect it to any dashboards, uh, you'd like to connect. So, uh, on the right side, you can see the pane and, uh, here's a connecting to– connected to DeepSeek, but you can select any other LLM model and provide a model, an API key and so on. Just connect to your own.
6:59 Right. And, uh, then, uh, in these, um, options, you can ask questions directly to data source, which is under, uh, specific dashboards or dashboards itself.
7:12 So, uh, let's start with dashboards and then, uh, connect to data source. Use dashboards. So we'll ask any question.
7:21 Okay.
7:23 Uh, and also, uh, please note that we are– have selected region and some data, uh, data range. So, uh, let's, uh, uh, let's check if, uh, it does read, uh, region correctly.
7:47 Which region is on…
7:59 Okay.
8:01 Um…
8:15 Well, um, you can ask any… This is like a text chat when you're chatting with AI, and here's a sales by category.
8:25 So then you can copy and paste and, uh, share with somebody.
8:31 Uh, we're working on keeping, uh, keeping history of chatting right now, but, uh, for, uh, for one session is pretty decent, uh, solution to analyze.
8:44 Maybe, uh, we ask specific question about profit ratio.
9:03 Specifically do the– without any grammar, just simple questions.
9:12 And also it's, it's good, uh, the Loupe is good for, uh, testing, uh, insufficient, uh, data sets. Maybe some…
9:21 If you're asking about, uh, asking questions to– directly to data set, uh, what's inside, uh, what kind of, uh, missing analysis it has just here.
9:33 This is what makes up eleven point eight percentage of profit ratio and its calculation.
9:42 So you can, you can, uh, you can do the same for tab, uh, like this. And there's any questions to, to the Loupe so far? 'Cause this, this is actually the end of presentation because, uh, because the extension pretty simple and maybe, uh…
10:01 And one, uh, one technical, uh, issue, uh, that we specifically, um, restrict, uh, connectivity of the Loupe to this entire Tableau Server, because in this case, uh, it just provides a lot of hallucinations and wrong, uh, wrong, uh, answers. So this is specifically only for data source or, uh, uh, dashboard itself. Let's connect to a data source and, uh, see what's inside.
10:56 And here you go. This, uh, connected to a simple, uh, sample source store and what the fields we have, parameters, and, uh, you can extend your questions.
11:07 Uh, what can I calculate, uh, from this, uh, data source?
11:13 Actually, this is– uh, that's it. Uh, if you would like to test it, you can try, uh, this one, uh, link and go do- go down to open dashboards and connect your… It's by, by default connected to DeepSeek, but you can connect by your own LLM model.
11:35 Jacquelline Antony: Okay.
11:37 Um, Boris, I had one question.
11:40 Boris Bakhvalov: Okay.
11:40 Jacquelline Antony: The, uh, so you mentioned that it tends to hallucinate if, uh, it's connected to anything outside of your Tableau Server or your database.
11:51 So, um, so if, if we were to ask, um, a question like, uh, what external factors would have affected sales, like seasonality or, um, holiday seasons, would it be able to answer?
12:11 Boris Bakhvalov: Mm-hmm.
12:24 Let's see.
12:25 Jacquelline Antony: Mm-hmm.
12:37 Boris Bakhvalov: See?
12:39 It's not connecting to-
12:40 Jacquelline Antony: Mm.
12:40 Boris Bakhvalov: Uh, to outside.
12:43 Okay, there's, um, uh, this, uh…
12:48 We definitely eliminate– This eliminates, uh, uh,
12:53 sharing, uh, your own data with the-
12:56 Jacquelline Antony: Okay.
12:56 Boris Bakhvalov: -LLM model, which is could be, uh, dangerous in terms of-
13:00 Jacquelline Antony: Mm-hmm.
13:00 Boris Bakhvalov: -uh, security.
13:02 And, uh-
13:03 Jacquelline Antony: Mm-hmm.
13:03 Boris Bakhvalov: -to reduce hallucinations, uh, you can provide the, the data set, uh, just, uh, publish it as a data set on Tableau Server. In this case-
13:12 Jacquelline Antony: Mm-hmm.
13:12 Boris Bakhvalov: -uh, it could just connect two data sources and, uh, even without building a dashboards-
13:19 Jacquelline Antony: Mm-hmm.
13:20 Boris Bakhvalov: -let's say.
13:21 Jacquelline Antony: Yeah.
13:22 Boris Bakhvalov: Kind of having-
13:23 Jacquelline Antony: Um-
13:23 Boris Bakhvalov: -a hybrid, hybrid model, uh, just, uh, on one da-data set, one dashboard bui- uh, built on data set and another just a simple data set not built, uh, without any dashboards. So it can connect both and provide you insights, maybe how to calculate and connect both together.
13:42 Jacquelline Antony: Okay. Okay.
13:44 Uh, Ravi, do you want to ask your question on…?
13:50 Ravi Kumar N: Yes. Uh, sure, Jacquelline.
13:52 Jacquelline Antony: Yeah.
13:52 Ravi Kumar N: Uh, so Boris, another question from my side.
13:56 Jacquelline Antony: Mm-hmm.
13:56 Ravi Kumar N: So let's say, for example, like you want to understand like any of this Loupe or any agent or any LLM that you have integrated has understood, like the business context properly. Like, how do we ensure that the data quality is, uh, maintained, or if it has understood the granularity of the data in a proper way? Like, i-is it something that we still have to, uh, you know, test the results manually, maybe by querying the data source?
14:23 Or, like, what, what are some of the best practices or frameworks that we could follow with this?
14:29 Boris Bakhvalov: Uh, yes. Uh, the model is just training by, uh, by itself from data sources published on your Tableau Server.
14:40 Ravi Kumar N: Mm-hmm.
14:40 Boris Bakhvalov: But this is actually, uh, your content of data, and, uh, reading, uh, context is a prime, uh, role of the Loupe from your Tableau Server.
14:51 Even just Tableau Server, Tableau Cloud.
14:54 Well, um, it's training automatically as soon as you're adding more and more details and more data sources inside.
15:04 But, um, reason why we built only, um, just restrict some, uh,
15:11 intentions of the LLM going outside, we want to– First of all, you analyze, uh, data as an analyst on, on your desktop, just on creating dashboards. You already done analytics, right?
15:26 And then, uh, you need to provide your users some insights and some tool, uh, any tool to go inside and check, uh, some relations between numbers, uh, how to cal-calculate KPIs and so on. This is kind of AI over the already done analytics.
15:47 So that's, uh, eliminate a lot of, uh, mistakes of, uh, understanding and, uh, explaining data.
15:59 Ravi Kumar N: Got it.
16:00 Thank you, Boris.
16:03 Jacquelline Antony: Yeah. We have one more-
16:03 Boris Bakhvalov: As soon as you'd like to– As soon, uh, as soon as you'd like to train, uh, it's on your own LLM. This is a huge, uh, project. Uh, even Tableau, Tableau doesn't have any solutions for that one because, uh, it depends on definitely on, uh, calculating, uh, capacity on your side. So you, you have to create kind of, uh, big data lakes and then train, uh, own local LLMs.
16:33 Uh, we passed this way. We tried couple times, but, uh, exponential of, uh, as just LLM asking a lot of, a lot, just a lot of, uh, cal- computers and, uh, RAM for the job.
16:49 So best way to…
16:51 We found that, uh, we connect, uh, extensions directly to already, uh, calculated or just any data sets you have in, just in your organization may be connected, uh, through the live connectivity or just through the extracts and so on.
17:14 Jacquelline Antony: We do have one more question that's come through chat.
17:18 Boris Bakhvalov: Mm-hmm.
17:18 Jacquelline Antony: Uh, how does data security ensure– Or how is data security ensured here?
17:25 Boris Bakhvalov: Mm-hmm.
17:25 Jacquelline Antony: Is there any audit trailing or inputs– for inputs or questions?
17:32 Boris Bakhvalov: Yeah, because we, uh, we did this Loupe, uh, especially for banks, and they have a high-level security, uh, for any data insights. So we created a coding and decoding.
17:46 So, uh, while, uh, Loupe talking, uh, to, let's say, uh, to the, to your data set or dashboard, uh, it's decoding, uh, let's say last name to, uh, last name one, last name two, and in inside the metadata, uh, it remembers how they code all, uh, all data and calculate inside LLM, definitely outside the company security, and then return back and the Loupe, uh, decoding back, uh, to normal last names.
18:25 What, what do you have in your, let's say, data set?
18:29 So they, uh, LLM calculates only numbers with, uh, just
18:35 decoded, uh, metrics, not metrics, uh, dimensions.
18:43 Hello.
18:46 Jacquelline Antony: Yeah. Uh, thanks for that. I think, uh, that was the last question.
18:51 Uh, thank you so much, Boris. Uh, unless there's anything, uh, further that you'd like to share.
18:57 Boris Bakhvalov: Mm-mm.
18:59 Jacquelline Antony: All good. Then we shall move on to the second part of our sessions today. Ravi, over to you.
19:08 Take us through speed.
19:11 Ravi Kumar N: Thank you, Jackie. So let me just-
19:13 Jacquelline Antony: Yeah.
19:13 Ravi Kumar N: -quickly share my screen. Please let me know once you are able to see it.
19:19 Jacquelline Antony: Yes, it is visible.
19:23 Ravi Kumar N: Perfect. Um, hi, everyone. Good morning and good evening.
19:27 So in today, I'll be specifically discussing about a topic which is, uh, very close to what I majorly do. So it is about, uh, designing for speed, and I'll be walking through some of the practical strategies for, you know, faster Tableau dashboards.
19:44 Uh, when I say faster Tableau dashboards, like, you know, I'm specifically talking about, uh, the rendering speed on the server, because after all the hard work and once your entire pipeline is built and the final layer is to build some sort of an interface, right? That is where, you know, we all build, uh, the dashboards and, you know, this will majorly speak about, uh, render time.
20:05 There is another, you know, hack that I generally follow, like for development. So let's say for example, if your data is extremely huge, like, you know, you can have that as an extract and then, you know, you can speed up your development times because more or less whenever you connect to your live data sources and then start, you know, uh, doing this development, it will, uh, you know, generally take more time.
20:30 So that is, uh, one quick tip for, you know, whenever you're working with respect to a development perspective. But majorly, like we will now focus on some of the best practices for, you know, gaining, uh, faster rendering times, uh, on the server.
20:45 So this is the agenda that, you know, I'm planning to cover for today. So we'll try to understand, uh, why the dashboard performance actually matters. And then, uh, there'll be a quick breakup of how the Tableau performance is evaluated.
21:00 And then, you know, I'll also be discussing about some of the core best practices.
21:05 And then, you know, towards the end, depending on the time we have, I'll try to have a quick, you know, working session. And then I'll also sh- uh, towards the end, I'll also try to share some of the, uh, references where I've learnt more about, uh, this topic. And also, I'll also…
21:21 We can also chat further, like if there are any other questions on, uh, this.
21:26 You know, like, you know, just before I've begin f- so we'll try to understand like, uh, this entire summary in a nutshell. So this is what I want all of you to, you know, have a takeaway from this session.
21:40 So in a nutshell, your dashboard performance is a deliberate design choice.
21:46 So depending on how you have designed your dashboard and how efficient it is, you know, the performance actually, you know, is directly proportional to that.
21:57 Three k- major key takeaways. So your entire dashboard performance actually focuses on four blocks.
22:03 So the first one is around data, and then you have, uh,
22:10 you will have the focus on calculations, and then the block is around worksheets, and then the final block is around the dashboard layout.
22:19 So as in when you try to optimize these four areas, like your return on, you know, performance will be the highest.
22:26 And the second important key takeaway is most of these fixes are relatively quick because throughout my experience, I've seen that like most of the slow dashboards tend to break more or less a similar set of, you know, rules. Once we understand some of these rules, it is relatively quick, uh, to fix. Of course, it does depend on the complexity and the use case, but majority of the time, like maybe like seventy, eighty percent of the time, we can quickly fix some of the most, uh, you know, issues or wh-whichever are some of the highest bottlenecks that you are facing.
22:57 And then the third important key takeaway is, you know, your speed or the rendering time generally drives the adoption and trust. Because we generally, you know, once you have built a dashboard, like we never get a, uh, second chance for making a first impression.
23:13 And, you know, load times are one of the, uh, very first aspects of our dashboards and, you know, the analysis that we have built to the user.
23:21 Like sometimes, you know, we even lose some of the audience even before they get a chance to experience our dashboard because let's say the dashboard is taking like fifty seconds, sixty seconds to load.
23:32 And that, you know, negative, uh, impression can hamper the rest of the experience because building a dashboard involves a lot of effort both on the back-end side as well as, you know, we have to think from an user experience point of view and also an user flow perspective. You need to think like how the user journey will be right from their landing page to the final anals- analysis that you would want to drive.
23:53 And also, there's a lot of effort that goes in, you know, building those pipelines as well. Like, you know, building the entire pipeline involves a lot of effort. You'll have to work with, uh, data engineers or if you are working as a data engineer plus BI, like you'll have to, you know, make a lot of different trade-offs by, you know, building those ETL, you know, systems and then trying to build a dashboarding or a, a quick interface on top of it.
24:16 So this rendering speed is extremely, you know, important.
24:20 And some of the most common, you know, dashboards or slow performing dashboards are due to a common set of, you know, um, mistakes or maybe I would not directly call it as a mistake, but those are the areas where, you know, we can give more focus on so that your rendering time is, you know, generally faster. And please note that this is not like a one hundred percent, you know, certain hard rules because it completely depends on the complexity and the nature of the use case.
24:51 But these are some of the issues where we can try to understand so that, you know, we, we as developers or authors would know that we can put our efforts in the right direction so that we can have, you know, good rendering, uh, speed.
25:06 So this was the, uh, you know, entire summary of this presentation.
25:11 Now we will try to, you know, deep dive around some of these topics in order to know like where exactly is the most important things that we need to focus on in terms of the initial set of blocks, you know, that we initially discussed.
25:26 So the first topic in the agenda was to understand why the dashboard performance matter. So slow dashboards do not get used very well. So we generally get around like six to eight seconds of, uh, you know, wait time generally that I've seen that the user's attention will start to drift somewhere. And then, like, if you have more than like seven, eight or ten plus, you know, views in a single dashboard tab, like the load time will definitely start to lag.
25:56 And then once some of the best practices are applied, there is a realistic swing of, let's say for example, if your initial load was taking forty to fifty seconds, like with some of these most important pressing points, if they are, you know, targeted and fixed, like you can expect the dashboard load time to be less than, let's say, four to five seconds.
26:15 And this, this is very important. Like performance is not like a nice-to-have feature. It is one of the key factors because after all the, you know, uh, back end and, you know, the development that happens, this user experience layer is where, you know, it actually makes or breaks. So it is a very, uh, key factor which drives your analytics adoption.
26:37 So these are the, uh, four blocks that we, you know, have. And any of our dashboard rendering time will mainly focus on data, which is like the source, and then the calculations that we write, and then, you know, how the worksheets are defined, and then the dashboard layout. Like this is where the rendering happens.
27:00 So the data source or all the calculations that we write, like it'll actually drive how the query speed is assessed, and then some of the calculations and worksheets that we have, you know, designed depends and, you know, the complexity of the data, as well as it also drive the rendering time on the dashboard. And then your final dashboards and worksheets actually, you know, carve out the computation of your layout of the final interface.
27:28 So under the hood, now let's try to understand like what happens when a dashboard is opened.
27:32 So as and when you actually pull up the workbook, the VizQL, which is like the language with which, you know, Tableau generally works under the hood, like it'll try to, you know, get all the workbook definition into the memory. And then in a– in its second step, it'll try to parse and get the layout in place. That is where, you know, it parses the entire XML and the dashboard structure is computed in step two.
27:57 And then in the third step, that is where it actually tries to connect to the data source. Like all the queries, uh, get rendered, and this is where, you know, Tableau writes a lot of different queries, and then it'll try to parallelly run. And the last piece is where the actual layout, uh, gets rendered. This is where all the elements and the query results get fetched, and that is how the dashboard gets shown.
28:21 So this is how like the order or the sequence in which, you know, a dashboard, um, loads. This is very important to understand because each of the decisions we make, uh, while designing as well as while publishing, it'll affect, uh, our performance on the production server or maybe any environment that you currently try to publish with.
28:43 Now, we'll go to the third, uh, topic in my, you know, agenda. So this is where we know we'll be discussing about some of the core best practices. Now, this is not like a comprehensive list. Like, you know, these are… You know, I've learned some of this from the community, and there is also a fantastic, uh, white paper by Tableau on designing efficient workbooks in collaboration with the InterWorks team.
29:06 Uh, some of the content from, you know, this entire presentation and my learnings were heavily inspired by learning from that resource. So towards the end, I'll share some of the resources where you can learn further about performance. But, you know, some of the data side, uh, best practices are, you know, shared here based on my learning as well as, you know, my experience by connecting to different data sources and optimizing workbooks.
29:29 So here, uh, always try to use native connectors. So you can always connect to different data sources using ODBC or JDBC drivers. But, you know, Tableau natively offers a lot of connectors to connect to the source. So please, whenever it's possible, try to use that. And then, you know, always try to work with your Hyper extract so it is, uh, faster, and you can always aggregate, uh, as a best practice to the visible dimensions and the granularity that is needed for your analysis.
29:55 Uh, query the right grain. Again, it depends on like what level of granularity the data is needed for your analysis. And depending on that, you can, uh, always capture the right grain from the data source.
30:06 And the next point is like try to push some of your calculations upstream. So whenever you're trying to write some calculations at a row level, so try to, you know, push those calculations in the database layer or in the upstream so that Tableau need not compute those columns or calculations because you can easily manage that within your, uh, pipeline.
30:25 And try to Avoid multiple data sources. And if at all, if you are going with merging data from multiple sources, like relationships are always faster compared to physical joins, and compared to that, you know, joins are faster compared to blending. So there are three ways in which you can connect to multiple, uh, data sources within Tableau, and depending on the complexity and the granularity of the data for your respective use case, you can try to, you know, use relationships.
30:51 And then, you know, reduce the data volume as needed. Like, you know, hide all the unused fields that are, you know, not needed. And whenever you're trying to, uh, you know, connect with multiple databases or tables and you're trying to perform joins, ensure that all the keys on which you are trying to join are having proper index back in the data.
31:08 Let's say, for example, you are trying to connect to two different, uh, tables on a particular columns, and if you have indexed those columns back in the back end, like your performance of, you know, fetching the data and, you know, Tableau re-rendering the data through VizQL, that will be much faster. These are all different, you know, let's say for example, small, uh, fixes that we can tweak.
31:28 Let's say, for example, just by using the right grain or using, you know, hyper extracts or pushing the calculations, you will have those, you know, millisecond to second, uh, you know, y- like whichever was taking one second, two seconds, you will get those rendering to milliseconds. And all of these smaller decisions in the right direction will actually eventually, you know, sum up and ensure that your dashboard load time reduces from, let's say, 30, 40 seconds to sub five seconds or sub four seconds with, you know, row-level security and all of that, you know, we implement.
31:59 So these are some of the data side, you know, best practices.
32:04 Then again, these are best practices around calculations. So whenever we are trying to have, you know, w- we are trying to do like row-level or grouping or aggregation calculations, like there are ways faster to, let's say for example, group items. So case, uh, statements are always faster than, you know, other native group functions or writing multiple or nested if else, uh, chain of, uh, calculations.
32:25 And then, uh, here is a small, you know, checklist that I follow. Like, let's say for example, whenever you're trying to have multiple calculations at the row-level, always try to move them to the, uh, upstream. And reduce the level of detail granularity as well, like fewer the dimensions are better. And also try to have your, uh, if you're having custom SQL and you're trying to fetch the data, like try to have, uh, you know, the query to be as linear as possible.
32:49 For example, like you need not write order by within your, uh, you know, custom SQL because Tableau also has a native order by feature, and you can sort the items depending on your use case. And then like, you know, uh, there are efficient, uh, calculation functions. So instead of using min or max, uh, I mean, use min or max instead of using ATTR, because if you want to get some ATTR values, it has to compute both min and max, and, you know, you've wrapped that function with ATTR.
33:16 So whenever duplicates are not a concern, or if you are, let's say, trying to compare some, uh, string values, you can always, you know, leverage, uh, min and max rather than ATTR, which is computation heavy. And then, you know, there are also, uh, built-in functions, uh, you know, try to have– use as many, uh, built-in functions as, uh, possible, and also using efficient data types.
33:37 This is extremely important because numbers and Booleans are extremely faster, you know, compared to strings and date. So whenever you have a lot of, you know, handling that is, uh, you know, done within your Tableau workbooks to move different data types, uh, data types, depending on the calculation or the analysis you want to do, try to make it like numbers or Booleans.
33:58 Like even, le- let's have a simple example. Instead of, uh, creating your parameter with string as a data type, create it with numbers and, you know, um, wrap it up with, let's say, Booleans or any of those calculations, i-it'll be extremely faster.
34:12 And also the calculations, uh, keep it like as simple as possible. Reduce deeply, uh, nested calculations and, you know, these smaller decisions, uh, will eventually help with respect to, you know, having some of the best practices around, uh, calculations so that your workbook is efficient, and your rendering is faster on the server.
34:33 Some more, you know, best practices like in Tableau 2020, uh, dot three, like there was IN operator that was introduced. For example, instead of saying if project equal to project one or project equal to project two, you can rather use IN operator and do a similar analysis or whatever, uh, you want to evaluate. And then COUNT DISTINCT is slow. So unless and until you want to calculate COUNT DISTINCT, like, you know, there are always different workarounds, use that.
34:59 But then this operation is extremely computation heavy because it has to find and fetch all of the unique, you know, items or unique values within your column. So just check if you really need that. And materialize some of the strings or date calculations. When I say materialize, like, uh, instead of computing or calculating some of these columns within, uh, your Tableau environment, you can push these in your, uh, tables and views in the database layer so that, you know, the results are already calculated in your DB layer, and then you will bring those columns and bring those columns and values within your, uh, Tableau for analysis.
35:35 Again, this is another set of, you know, uh, order of operations that we all are familiar with. So there are different, um, you know, filters, and, uh, there is a way in which your Tableau evaluates, uh, this filter order. So some of the best practices here is like use extract or data source level filters wherever is possible. Don't try to have these, uh, quick filters because let's say you have, uh, 10 different quick filters in your, uh, view, and if there are like three different charts, that– So that is more or less ten plus three, 13 different queries that Tableau has to write to your data source to fetch the data.
36:10 And then avoid high cardinality, uh, filters. Like if, let's say for example, if you have a customer name or maybe a product name as a quick filter, when I say high cardinality, if it has more unique values in that particular column, you know, don't try to use that as a quick filter because it'll always be difficult to fetch the data. If you have, let's say, 10,000 customers or let's say 100,000 unique products, you don't use that as a filter.
36:34 And then use all values in the database rather than, you know, uh, instead of only relevant values whenever you try to configure these filters, because whenever you use, uh, relevant values, and as an example, if you have five different filters and if you have relevant values in all of the second, third, and fourth and, you know, so on all the filters, whenever the value gets changed in filter one, it has to fetch– the Tableau has to fetch the relevant, uh, values which are under filter one across all of your, you know, filters, so the rendering time will be faster.
37:02 Rather just get all of the values within the database. And also, there's a small, uh, tip here, like you can also use Apply button. The example, like if you have, uh, let's say 100,000 products, and if you don't use the Apply button, whenever you select a different, uh, product, like, you know, the Tableau will evaluate. At least if you have the Apply button, it'll actually wait for the user action so that whenever the Apply button is clicked, that is when actually the Tableau hits the data source to get the relevant data.
37:27 And this is again, like using numbers and Booleans to have it, uh, faster, uh, compared to strings. And also the context filters, uh, you know, use it as carefully as possible. Let's say you have a worksheet, and if you have like 10 or 15 different, uh, context filters, that will eventually impact your load time. So depending on the complexity and, uh, the subset of data that you need for the analysis, please ensure that, uh, the context filters are carefully evaluated.
37:52 So the next block is around, uh, worksheet best practices. So when it comes to worksheet, like, uh, one of the easiest things that we can do is to watch the mark count. Let's say for example, if I go to, uh, Tableau and go to a particular, you know, sheet, you will have this marks here, right? So try to have lesser marks, as much of, as much as lesser marks as possible, because every mark or every dot, like the Tableau has to fetch the relevant value, as and when that is not required, like don't push or don't put all of your columns on your mark shelf or on detail shelf, because the more the marks, more the rendering.
38:25 And then again, like the context filters, try to use this, use it carefully. And whenever you're having an image within your worksheet, try to ensure that it is a PNG, uh, format, because the JPEG format will actually increase the size of the workbook file, and that'll eventually lead to, you know, higher, uh, rendering times on the server. And then avoid duplicate worksheets.
38:44 So as a quick, uh, example, let's say you have, uh, three different dashboard tabs, and each of those, uh, dashboard has, let's say, a date filter. Now, calendar filter, right? So instead of having three different sheets for three different tabs, it is good to use, you know, one sheet and use that sheet, uh, in all the three different tabs. Um, as a workaround, what you can do is whenever you have created one calendar sheet, uh, right-click on that and, you know, don't hide that sheet.
39:10 And then your– when you go to dashboard tab two, that sheet will be available for you to use. And you go to dashboard tab three, that sheet will be available to use. And then once all of the dashboard tabs, you know, uses that calendar and, uh, that specific sheet, you can hide it and you can close it. So that this way you can avoid creating multiple worksheets because more the sheets, again, it'll, you know, eventually, you know, write more multiple queries in the back end as well to fetch the data from the data source.
39:36 And again, avoid high cardinality fields. Like whenever you're using IDs or customer names with many unique values, you know, try to avoid that, uh, field directly, let's say, within your worksheet or filtering, because it'll eventually have more marks. And if you still want to use it, depending on the use case and the filtering, try to get the subset of data that is actually needed for the analysis and then, you know, start, uh, using it.
39:57 And then the last block, uh, I think there's one more block, but then yeah, this block is mainly around, uh, dashboard best practices.
40:04 So this is where once all of the worksheets are designed, one– all of your calculations and everything is efficient, and you think that everything is properly assessed depending on the use case that you're trying to build. Like in your final dashboard, like try to fix your layout, uh, as the first thing, because whenever your size is fixed, you know Tableau will cache that result.
40:23 And whenever you keep the canvas to be automatic, like every screen that you render this dashboard upon has to fetch the results, you know, every time. And, you know, it'll be like, you know, taking some, you know, seconds or maybe milliseconds to render that. So you need to have that optimal experience for your end user so the, so that all your hard work, you know, gets, you know, uh, paid in a proper way so that, you know, the user experience is as seamless as possible.
40:47 That is the overall, uh, objective with which, you know, we are trying to efficiently design our, our dashboards. And then a limit to as many lesser number of views as possible. Like, uh, if– for example, when you are, uh, you know, loading a dashboard, like maybe I'll go to this, uh, super store dashboard. Let's say for example, you're trying to load this and you don't want to have this, you know, detailed worksheet available on this.
41:09 Uh, like as and when, let's say your manager or, you know, regional supervisor or if any executive logs in, they don't want to immediately see this. So you can always have that guided analysis. Let's say you click on something, it'll open up the values inside that, or you click on that, it'll go to the detail level. Have that, you know, some sort of a, um, guided analysis and then try to, you know, hide as many views as possible unless and until you click on Show or maybe you control it with some dynamic zone visibility, depending on how you want to show that data, because that will, you know, uh, reduce the rendering time that is needed.
41:41 Again, with respect to filters as well, uh, the third thing, like three to four or five, less than five is, uh, somewhat good as a thumb rule. But again, it depends on the use case, but please try to have, uh, less number of filters so that you are rendering and the entire efficiency is, you know, e-evaluated end-to-end. And then hide the detail worksheets like, you know, I mentioned like use Show Hide or, you know, DZV to reveal, uh, expensive, um, you know, actions and sections whenever that is needed.
42:08 And clean up the containers as well. Like if you have like three different or, uh, 10 different nested containers, and if you think that you designed some sheet and it is not required, don't, you know, leave that, you know, container as an orphan. Like, just try to delete if you are not using it. Make sure that every object that you use within your workbook is something that you actually need, and every small decision that you take will actually help you towards the end.
42:31 And then, um, drop the unused device layouts as well. Let's say you're specifically designed for– designing for, let's say, a laptop or a laptop screen. Try to have only that. There's no need to have, uh, your mobile layout as well, uh, enabled.
42:44 So these are some of the core best practices. And, uh, towards my, uh, fifth topic for today or the section, like this is where, you know, don't try to guess, try to measure your performance. That is when, you know, we will try to, uh, get some, um, you know, metrics or analysis from Tableau as to where we actually try to, you know, need to put our efforts in.
43:06 So it'll help us point in the right direction. Um, there are two ways in which, you know, we can try to assess the performance. One is this Workbook Optimizer. So I use this heavily like during my development phase where, you know, like I try to build something, test it with the Workbook Optimizer. It'll actually, you know, it– Tableau has, um, you know, a set of, uh, rules with which your, uh, workbooks metadata is captured and maintained, and it'll try to assess if some of those are, you know, uh, let's say, followed.
43:31 It'll flag all of your issues into three different buckets. It will say either take action, needs review or passed. Depending on, you know, whatever actions that you have taken at the workbook, you can try to, uh, manage this. So once your workbook optimization is done and you as an author or a developer feel that all of the, uh, steps are taken care from your side, then go to the performance refo– uh, recording option.
43:50 So this is where you can actually, you know, record the performance as on the desktop as well as on the server. And a, a thumb rule to remember here is if your workbook or dashboard is slow on the desktop, it'll more or less be slow on the server as well. So try to, you know, um, manage that and ensure that your dashboard is faster on the desktop as well, so that it'll be definitely, you know, faster on the server.
44:14 So these are some of the, um, ways in which you can, uh, measure the performance of the workbook.
44:21 So this is where you can actually try to, uh, prioritize, like what are the different fixes, uh, that we can follow. This was one of the presentations that was done on, uh, Tableau Conference in twenty eighteen by, uh, Lovekesh. So I have taken one of the screenshots when I was, you know, learning more about performance. Like this was really interesting because, um, there is a section here which says "Start here." Like these are some of the easier things that we can control as an author or a developer.
44:48 And then there are certain elements where, you know, uh, the database type or the hardware or the server load, like this is beyond our, you know, control. Yes, you can still partner with your admins and try to evaluate and assess, but then like these are some of the things that we can control as developers, as part of our, you know, design process.
45:04 So whenever we are trying to, uh, design our Tableau, uh, ecosystem, like we can definitely, you know, focus on some of these, uh, design elements.
45:13 S-start with some of the easier things like filtering and sorting and, you know, try to understand how much is the volume of the data, like what are the marks that we have. And then go, go as a second layer, like try to go to the complex LODs or window calculations or table calculations that we have. So go in this, you know, direction so that you can get the maximum impact with, you know, as much as, uh, little time as, uh, available for you to, you know, test and deploy the changes.
45:41 So I'll, I'll– considering we only have five, six minutes, I'll try to quickly show how we can, um, you know, manage and assess this performance recording. But yeah, like these are some of the resources. Please try to check this, uh, design efficient, um, uh, production dashboards whitepaper as well. There are some other, you know, uh, you know, tutorials out there that has really, uh, helped me understand when I was in my beginning journey of Tableau to a-assess more about the performance, uh, recording.
46:07 I'll try to share some of these resources on, um, uh, LinkedIn later. But yeah, I'll, I'll try to go over and, uh, you know, show a quick, uh, demo as well. So this is my LinkedIn. If anybody wants to scan this, please feel free to. I'll quickly show that again for like five more seconds so that you can send me a request, and if there's any help that is needed around optimizing the workbooks, you know, please don't hesitate to reach out to me.
46:31 I know we only have five minutes. I'll quickly take 30 seconds to show how we can actually do a performance recording. Let's say like this is the final dashboard that you have built, and you have done a Workbook Optimizer. You know, you followed some of the best practices and, you know, now the final stage is, you know, to understand the performance recording.
46:49 This is a very complex topic because I– it, it obviously needs a lot of time to, uh, go through each of the sections and the blocks that, uh, you know, I discussed earlier. I know it, it definitely takes in a lot of time. But yeah, it is definitely worth the effort because after all the hard build of, you know, building your pipelines and getting the final dashboard ready, the user experience, uh, matters a lot.
47:09 Like if you have all of your dashboard views that gets rendered in less than three seconds, your stakeholders will be extremely, you know, pleased with that, and they would want to look at the work that is built and, you know, they will start taking business decisions and, you know, it'll be a loop, uh, with greater feedback. So, uh, a quick, uh, option to show here, go to the Help section.
47:29 Uh, this works on both Windows and Mac. Go to your Settings and Performance and, uh, start performance recording. Generally, there is no pop-up that comes that the recording has started, but it, you know, generally works. Like for example, I click on, uh, start performance recording and then try to think from an end user point of view, like what are all the different actions they can take.
47:48 Uh, look at the filters and everything. Try to, you know, explore and play around with all of the filters and the analysis that might be done by an end user, because we always need to keep our end users in mind and understand their workflow.
48:00 So once you have done that, go back and, you know, stop the performance recording. So once this is done, Tableau will actually pop up with a dashboard of its own, and it'll actually give you the workbook performance, uh, recording summary.
48:16 Now, again, like there are, um, you know, a lot of key metrics that gets, you know, populated there and, you know, this is the workbook. Like it'll generally open up depending on the complexity of your workbook in less than like forty, fifty seconds. But then like this is how the performance recording will be. Uh, there'll be a lot of different, um, elements here.
48:34 Uh, I know we don't have time to cover, but yeah, I'll try to share more on this, uh, you know, later. But as a, a quick thing, what you can do is once your recording is open Uh, go to your elapsed, uh, time sheet. Uh, there are three main sections here. So just go to this, uh, sheet. Uh, be-before that, like this timeline, Tableau will actually assess, like, which elements are taking higher end time.
48:58 It'll pre-filter to, you know, the views which are taking more time, so you can ignore this part. Like, this range filter is what I'm trying to say. But then once your, uh, recording is up, uh, go to your actually events page.
49:11 You know, there are two, three important fields that you need to remember here. So that actually really helps us drive the efficiency. One is the worksheet. Try to get your worksheet, and then there is something called elapsed, uh, time. This is a metric that Tableau generates. It'll actually show, like, how much seconds, uh, you know, uh, as you can see on this, uh, x-axis, like elapsed time in seconds.
49:33 And try to go to that particular sheet and try to, you know, assess how, how much of, uh, time is– does each block or an object that is taking for rendering. And whenever you see that, you know, uh, for example, I created one sheet called test sheet, and that is taking, you know, a lot of time. So now– And it, it, it shows here that it is taking a lot of, you know, computing layout.
49:54 Uh, that, that is the category with which the sheet is belonging. But then, you know, you– I think that is coming from event, I believe. So if I… Yeah. So that is coming from event. So if you explore this event, worksheet, and elapsed time, like, uh, you know, there are too many elements here, but to summarize this entire recording, try to focus on these three or four different elements, and it'll actually show you which worksheet is taking a lot of time.
50:18 And then you can go to that worksheet and, for example, this test sheet that I created, it is taking some, you know, computing layout. Now, if I go back to my Tableau dashboard, so this is that test sheet. For example, I go inside. You can see this is the test sheet. I just created a table with, uh, a lot of different dimensions and measures. I know that this is taking a lot of time because I've added a lot of different, uh, measures and, uh, you know, dimensions as you can see.
50:43 But depending on the use case, like you can, you know, try to see. Now I know the test sheet is taking time. Now, as a developer or an author, I can put my efforts in this sheet to understand, like, what are some of the things that are needed, not needed, how is the calculations that I've, you know, written in this, uh, sheet that is affecting. So you can point your efforts in the right direction.
51:02 So that is the key takeaway from your, uh, performance recording. I know we are on time, but, uh, yeah, this is where you can actually explore the performance recording results. And if you ever need help, you know, please feel free to reach out to me.
51:17 That's it from me. Thank you so much for your time today. I'll, uh, stop sharing.
51:23 Jacquelline Antony: Thanks, Ravi. Uh, that was, uh, some really insightful tips and tricks, uh, that we can use in our Tableau dashboards. Uh, does anybody have any questions, um, for Ravi?
51:37 Ravi Kumar N: Perfect. I think we are good.
51:40 Thank you so much everyone for joining us today.
51:43 Uh, over to you, Jacquelline.
51:45 Jacquelline Antony: Yeah.
51:46 Thanks, Ravi. Uh, so I think that brings us to the end of our sessions today, and we hope to see you on our next session, which we will schedule very, very quickly and, um, uh, make the announcements as well.
52:02 So thank you all for joining us. See you on the next one. Bye-bye.
52:08 Ravi Kumar N: Thanks, everyone. Have a good rest of the day.
Shorts for this TUG
- How Loupe keeps your data private from the LLM 17:33
- Why Loupe limits its AI to one data source 10:01
- Slow dashboards lose users before they start 23:07
- 8 seconds before your users stop waiting 25:32
- What Tableau does when a dashboard loads 27:32
- Relationships beat joins, joins beat blending 30:08
- Use MIN or MAX instead of ATTR 33:06
- Numbers and Booleans beat strings in Tableau 33:36
- IN operator, and why COUNT DISTINCT is slow 34:34
- 10 quick filters + 3 charts = 13 queries 35:54
- Add an Apply button to your Tableau filters 37:05
- Reuse one sheet across dashboards 38:42
- Fixed-size dashboards render faster 40:14
- Slow on Desktop means slow on Server 42:52