Analytics Tableau User Group 29 Jan 2026
Analytics Tableau User Group : LODs, Map Layers & Accessibility
2h 9m 20,278 words transcribed
Summary
The Analytics TUG opens 2026 with three sessions: level of detail expressions, KPI cards built with map layers, and color accessibility. This recording is published by the Analytics TUG on its own YouTube channel, and the talk page credits and links to it.
Co-lead Prasann Prem (Emirates NBD) introduces the group and its leaders, Annabelle Rincon and Chimdi Nwosu (VizSight Analytics). Chimdi introduces each speaker, and Annabelle relays questions from the chat.
Chris Williams of Precision Analytics Group, co-leader of the Black in Data and Portland TUGs, explains LOD expressions in plain language. He covers why they matter (simpler dashboards, reusable calculations and fewer support tickets) and the three types. In a workbook he builds a FIXED calculation for each customer's first order date to drive monthly new-customer cohorts by region, an INCLUDE calculation for the share of unprofitable products in each subcategory, and an EXCLUDE calculation that repeats national sales beside each state. In Q&A he explains when he reaches for FIXED or INCLUDE, and why he prefers LODs to table calculations.
Prasann then shows how to build KPI cards with trend lines on a single sheet using map layers rather than small multiples or table calculations. He normalizes each value to a fixed range, places it with MAKEPOINT coordinates, draws lines and bars with MAKELINE, uses a parameter for card height, and shifts the baseline to handle negative values. The workbook is on Tableau Public.
Doc Kevin Lee Elder of Louisiana Tech University, who is color-vision deficient himself, closes with "Do You See the Data?" He explains how cone cells work, why everyone loses color vision with age, and why many "colorblind-friendly" palettes still fail. His advice: use color minimally, never more than six hues, add redundant cues such as icons and labels, and check designs with simulator tools, including Adobe's color wheel. He also mentions datachangemakers.org, started by former Viz for Social Good leaders.
Key points
- LOD expressions make dashboards simpler, calculations reusable, and stakeholders more confident in the numbers.
- FIXED works independently of the view: use it for values like each customer's first order date.
- A FIXED first-order date per customer is the foundation for monthly new-customer cohort analysis.
- INCLUDE adds a finer dimension to a calculation without changing the view's granularity.
- EXCLUDE removes a dimension, for example to show the national total beside each state.
- Map layers let you build several KPI cards with trends on a single sheet, without small multiples or table calculations.
- Normalize each value to a fixed range, then place it with MAKEPOINT and draw it with MAKELINE.
- Handle negative values by moving the baseline and normalizing on magnitude.
- Everyone loses some color vision with age, so accessible color helps every viewer.
- Use color sparingly, never more than six hues, and add icons or labels so meaning never depends on color alone.
Jump to a chapter (28)
- 0:00 Welcome and the Analytics TUG leaders
- 3:50 Ground rules
- 5:24 Introducing Chris Williams
- 6:38 Chris Williams: the power of LOD expressions
- 17:41 The three types of LOD
- 18:51 LOD use cases and syntax
- 22:34 FIXED: customer cohorts by region
- 31:30 Q&A: customers in more than one region
- 35:19 INCLUDE: unprofitable products per subcategory
- 38:34 EXCLUDE: national sales beside each state
- 42:00 Q&A: choosing FIXED or INCLUDE, LODs vs table calcs
- 47:20 Prasann Prem: KPI cards with map layers
- 52:43 Why map layers for KPI cards
- 54:49 Normalization and coordinates
- 58:34 Live build: axes and periods
- 1:05:18 Rolling twelve months and labels
- 1:12:42 Normalized bars with MAKELINE
- 1:20:07 Handling negative values
- 1:29:16 Introducing Doc Kevin Lee Elder
- 1:30:59 Doc Kevin Lee Elder: do you see the data?
- 1:35:57 How color vision works
- 1:39:48 Color vision tests
- 1:45:00 Why colorblind palettes still fail
- 1:48:45 Red and green uniforms
- 1:52:31 Tools for checking color
- 2:01:32 Q&A: brand colors and too many categories
- 2:04:56 The dress: white and gold or blue and black
- 2:08:21 Wrap-up
Transcript
0:01 Prasann Prem: Okay, so we start now. Hi everyone, thank you so much for joining again, and Happy New Year to everyone. This is We Analytics Tableau User Group, and we are so excited to see you again.
0:15 And we have amazing speakers, including me.
0:21 Re-rest of the speakers we're definitely gonna introduce as well. So, uh, what makes this TUG a bit different? Yes, uh, it's Analytics TUG, and it's all about analytics. Uh, it's taking place virtually every month.
0:34 I know most of you know this, and you are always there to attend this particular Tableau User Group. That's why we are famous. And, uh, make sure to subscribe us if you haven't.
0:46 Also, Annabelle has already put the next event link, so you can do that as well.
0:54 Okay. So our TUG leaders. First we have Annabelle Rincon. She is flying through the globe, enjoying life. We have Chimdi, who is a data VizDiner, uh, at VizSight Analytics. And this is me, Prasann, who is data visualization manager at Emirates NBD.
1:14 About Annabelle, she is a Tableau Visionary and Ambassador.
1:19 You can go to her blog, lots of good material to go through and learn about how she has actually used Tableau. Lots of mathematics as well, you might find it there. And, uh, she worked as a Tableau Enablement and Analytics Lead, and currently available for hire. You can grab her if you would like, like still you have the time.
1:41 And she discovered Tableau ten years ago and fell in love immediately. She has six VOTDs, and also co-leads Enablement and Data+ Women webinar. She loves baking, and most probably she is gonna bring, uh, some pastries to this coming TC, so you got to find her and take those pastries, and you should check out the YouTube channel as well. You can just take a screenshot for now, and then you can scan and register as well there.
2:11 And then we have… It's me.
2:14 Uh, I love Tableau.
2:16 I have a couple of initiatives that I've been running, that's Tableau Buddy and VizDiner. I started using Tableau in twenty-twenty, and I am currently working as a manager, data visualization. I have, uh…
2:29 I, I love writing, uh, content on social media, and that's how a great community over the easy years, and I have four VT-VOTDs. Cat food, anime, I just love all these three, and my Tableau people, of course. And then we have our superstar, Chimdi, who is also a Tableau Visionary and Ambassador, and, uh, he's doing freelance and contract data visualization for clients in many industries via his venture, VizSight Analytics.
2:57 He fell in love and went all in in two thousand twenty with Tableau. Sixteen VOTDs. Maybe it has increased, I don't know. He hasn't edited the numbers yet. So, and he co-leads Makeover Monday.
3:12 I bet most of you know about this. Very, uh… I would say most of us started our career with Makeover Monday. And he also participates, uh, uh, alongside other challenges to improve and share with the data fam, and he's a strong believer of functional aesthetics. He's a viz junkie, and enjoys documentaries and working out.
3:33 Do you like running as well?
3:35 I've started running, so that's why I'm asking.
3:38 Chimdi Nwosu: I do like, uh, sprint drills. So like, not long-
3:41 Prasann Prem: Mm-hmm
3:41 Chimdi Nwosu: … distance, but like high intensity stuff. So it's-
3:45 Prasann Prem: Ah, nice
3:46 Chimdi Nwosu: … yeah, I love that. Yeah, yeah, yeah.
3:49 Prasann Prem: Okay. So some ground rules. You can interact.
3:53 Yeah, I, I think you already know. I don't need to put this up. Please have those interactions out there in the chat section. If you have questions, please do use the Q&A because, uh, questions might just… We wouldn't be able to find it. And the session is being recorded, so no need to scribble down, take notes.
4:12 Just enjoy and have fun.
4:15 And that's it. I'll hand it over to Chimdi now.
4:23 Chimdi Nwosu: Awesome. Thanks, Prasann.
4:25 So as mentioned, we've got a great session for you today. We've already done the intro, and now we're gonna bring in our speakers. First, we've got Chris, who is going to talk to us about the power of level of detail expressions, a very powerful tool in Tableau. So I bet that's gonna be interesting and, and informative.
4:42 Prasann, who we know very well, is gonna talk to us about KPI cards, simple map layers. So again, you know, the KPI is a standard, uh, foundational part of dashboarding, and that session's gonna give us some more flexibility in how we build this out, you know, to be more robust. So again, another beautiful technical session. And then Doc Kevin is gonna talk to us about the first step, you know, in building dashboards, which is basically whether or not we can see the data.
5:10 So that's a talk that's gonna be about accessibility and dashboard development, and why that's super important. So a lot of, you know, topics that go really well together, and I'm excited to see what we got going today.
5:23 So for our first speaker today, we are going to have Chris.
5:30 Chris is very seasoned, so we're lucky to have him. He's got more than thirty years of experience in designing, leading, building and implementing full cycle business analytics, including predictive analytics, so like the next level stuff. He currently works as a director of analytics consulting at Concentrix, and he's got a focus on building and solutioning Salesforce products like Tableau, Data Cloud, you know, the stuff that we're kind of, uh, used to.
5:57 And
6:00 he founded Precision Analytics- To improve the productivity of the clients through a combination of optim- optimizing data analytics, data blending, comprehensive reporting, basically everything to help them de- deliver successful, um, analytic solutions. Today he's gonna talk to us about the power of LOD expressions in Tableau, and so again, that's something that think that we're all gonna benefit from with respect to building out these products.
6:31 And I'm gonna pass it off to Chris now to get us into the good stuff that we're waiting for.
6:38 Chris Williams: Awesome. Thank you so much, Chimdi. I, uh, it's great, it's an honor to be here. Um, let me go ahead and start sharing my fun self. Let's start off with some slides, and then we're gonna go into workbooks, and I'll break these down. The first thing I always say when you get into learning something like LODs, you'll either have, like, the fear of God put into you, or you'll be like, "Okay, this is awesome." So we're gonna get you into the awesome boat here for a minute.
7:06 So I'm gonna share. Let me go share this guy.
7:14 And then I will come here to make sure that all your… All is well. Can you see my screen?
7:25 Everything good?
7:26 Annabelle Rincon: Yes, we can see your screen.
7:28 Chris Williams: Okay.
7:29 So, uh, let me tell you, thank you for the wonderful introduction. Um, I am also the leader of, uh, co-leader of the Black in Data Tableau user group, as well as the Portland, uh, Tableau user group, which is funny because I'm based out of Laguna Beach, California. Uh, so, uh, but I lived in Portland for eight years, so I keep that up.
7:50 So, um, it's, I've been an ambassador for s- for about four years now. It's really, again, it's an honor to be here. So before we get into anything technical, I wanna start off, to start with a feeling that most of us have had.
8:05 At some point in Tableau, you built a view that looked right but the numbers were wrong, or they were right until you added one more dimension or filter or date.
8:17 Uh, that frustration usually is the moment people first hear of level of detail expressions. And for many people, that's also the moment Tableau suddenly feels complicated.
8:29 So today is about changing that. Uh, my goal is to take LOD expressions out of the advanced wizardry section and turn them into something practical, understandable, and genuinely useful.
8:43 Uh, by the end of the session, I want you to walk away thinking, "Oh, that's it?
8:48 I can actually use this," not just to pass a certification, but to also solve real problems at work.
8:55 So here's how we're gonna spend our time together. First, we're gonna talk about what LOD expressions actually are, uh, in plain language and not documentation language. Then we're gonna look at why LOD matters. Uh, what kind of business problems are they designed to solve? Then after that, I'll introduce the three types of LOD expressions, walk through the syntax, and show how they differ.
9:21 Then we'll spend the bulk of our time in, on a, a Tableau workbook showing each of these three types, okay? Because LOD is really… I can give you all the slides you want, and you can have the slide deck if you want me to, to present that to you. Uh, but LODs really don't make sense until you actually get into the workbook and really see the syntax and, you know, see the numbers differ.
9:44 And then finally, we'll, we'll do as much Q&A as I can.
9:47 Uh, I told everybody at work to leave me alone, so, uh, do not disturb throughout, but I may have some fires that I might need to deal with, but I will answer as many questions as I possibly can.
10:00 Okay.
10:01 So by default, Tableau is very literal. It calculates values based on exactly what you put in the view.
10:10 I- if you show sales by month, it calculates by month.
10:14 If you add customer, it recalculates by customer and month. If you add region, everything changes again.
10:23 So that's powerful but also limiting because sometimes the business question isn't, what are the sales at this level of the chart?
10:34 It's, what is the total per customer regardless of how I slice this view?
10:39 What is the average order size per account even when I'm looking by product?
10:47 Uh, and what is the true lifetime value, no matter how I filter the dates?
10:53 LOD expressions let you tell Tableau, "I know what's in the view, but calculate this at this level instead." You're separating how the data is displayed from how the data is calculated.
11:08 That's the real superpower.
11:13 So without LOD expe- uh, expressions, most of us end up doing one of three things: creating duplicate worksheets, writing overly complex table calc- calculations, or accepting numbers that are close enough.
11:30 All three of these options are fragile.
11:34 They break when filters change, they confuse other developers on your team, potentially, and they create maintenance nightmares.
11:43 LOD expressions give you, gives you a stable foundation. They let you define business logic once, clearly, intentionally, and correctly, and reuse it everywhere.
11:57 That's the key. Like, once you define your LOD, you can literally put it anywhere that makes sense within your workbook or- Your project because they always hold the same value, and that, that's really, you know, one of the things that when I first started learning level of detail, that was something I leaned on heavily.
12:16 Um, I had some use cases that I was just getting frustrated playing around with View, and I was just like, "Okay, fine, I'm just gonna define it all." And once you get to that use case where you know what you wanna do and you figure out what the LOD command is, it'll make your life a lot of– a lot easier.
12:32 So that's the difference between I hope this dashboard still works, and I trust this dashboard.
12:39 So if we're gonna break down these importance of the commands. So think of precision as they enable precise control over the level of detail in your calculations, ensuring accuracy in your analysis. Look at customation. They allow you to create custom aggregations tailor-made for your specific analytic needs.
12:58 You're looking at the granularity.
13:00 Provide the ability to analyze data at different granularities, which is crucial for dealing with, with not just simple, but also, more importantly, very complex datasets.
13:12 Enhanced control. If you look at this, they, they offer greater control on how dimensions filter your end effect.
13:20 Dimensions and filters affect your visualizations, giving you fine-grain control.
13:24 Last but not least, LODs give you, uh, the ability to uncover hidden patterns and insights within your data, uh, leading to more informed decision-making. We all have our requirements, right?
13:38 So you look at your– It's not just the requirements, the primary requirements that you're solving. LODs give the ability to look at those secondary and tertiary questions that you haven't thought of, but will expose some answers to some questions that are coming. So think of it that way. It's a little bit of a foreshadowing type of thing too.
14:04 When teams adopt LOD expressions properly, a few things happen.
14:10 Dashboards become simpler, calculations become reusable, performance often improves, and most importantly, support tickets go down.
14:22 Uh, the last thing we want as a developer is to deploy something and people question what it is that you're doing, or they can't understand it, and you get a support ticket, and then those stack up, and then they end up in your queue, and you wanna take three weeks off of vacation not to deal with them anymore.
14:38 So that's, that's not gonna happen now. So– But the biggest change really is trust. Executives stop asking, "Why did this number change?" Analysts stop second-guessing themselves.
14:51 And suddenly your dashboard become tools, decision tools.
14:57 It's all about adoption.
14:59 So when you produce something and produce numbers, whether it be a dashboard or LODs within your dashboard, your stakeholders are looking for confidence that those numbers are correct.
15:11 And so LOD expressions give you that confidence as you define what your dashboard is doing. Therefore, everybody stops questioning. They, they understand how this calculation is and works and was built, and they can rely on that and then make decisions based off of that. Because ultimately, when we build our dashboards or anything, we wanna make sure we have, uh, company or organizational trust in whatever you build.
15:41 That's how adoption gets created. That's how, honestly, we have our jobs longer and so forth.
15:47 So you have five points over here.
15:50 Uh, precision and analyst– analysis rather, allows for precise control of the granularity in a calculation. So this is particularly valuable when you need to isolate Specific Dimensions or data points to answer complex analytical questions.
16:05 Um, the agg– custom aggregations allows you to create aggregations that are not possible with standard Tableau calculations. LOD expressions enable you to ex– include, exclude, uh, Specific Dimensions in your calculations, which I'm gonna get into, uh, giving you the flexibility to tailor your analyses based on your specific needs.
16:29 Um, you can also do, uh, for enhanced control, uh, it gives you greater control of how dimensions affect your visualizations, so you can define exactly which, uh, dimensions should be considered in your particular calculation, uh, allowing for more focused analysis as well.
16:49 Efi-efficiency and simplification, this simplifies your complex comp, uh, calculation and makes them more efficient. It can reduce the need for creating numerous calculated fields, which when I first started doing, before I got into LODs, and before I broke my own walls of understanding what LODs would do, I would write these long, long calculations or have multiple fields or something, and I'm just like, "Okay, I can't keep doing this.
17:19 This is not efficient. It's a maintenance nightmare. Let me just get into this and figure out what's going on." And that's what this really is about.
17:26 Um, and then lastly, you know, these expressions allow you to delve deeper into your data, isolating and analyzing specific aspects, so uncovering the hidden patterns again.
17:40 So when you look at this, we have our three types of level of detail expressions. So what I'm gonna do is give you a definition, and then I'm gonna give you a use case for how this can be applied. All right? So let me go from left to right.
17:56 So include. An include LOD allow– allows you to include a specific dimension in the calculation without affecting the visualization's level of granularity. It focuses on The include dimension while keeping the other dimensions unaffected.
18:14 So again, in order for really… And this is how I learned, I'm not saying you should learn the same way, but this is how I kind of learned. What ends up happening is I like to apply a use case to why I'm doing something, whether it be a worksheet, whether it be a command, uh, I need to, you know, apply it to why. It helps for traceability, but it also puts more reasoning when you're explaining this to somebody who's not as technical as you are, or a C-level, or a stakeholder, why is this the way this is?
18:44 It also helps you reinforce and keep things clean on why you're putting it in the dashboard or a worksheet to begin with.
18:51 So LOD use case.
18:53 Um, so think about it, uh, for instance, finding the average profit for selected products without breaking the analysis of other, by other dimensions.
19:06 So you wanna go ahead and isolate a certain dimension in your calculation.
19:12 This is when you would wanna use an, uh, an include, and I'm gonna get to that. I'll go through all of these three, um, in the workbook, which I'll share momentarily.
19:23 Um, the next one is fixed. A fixed LOD allows you to calculate a value based on dimension regardless of the visualization's level of granularity. It fixes the scope to the s- a scope of analysis to a specified dimension.
19:41 And this is the one thing about fixed.
19:44 Fixed LODs act independent of what is in the visualization already.
19:50 It's always going to be… So you can always think about fixes.
19:53 That's, that's what it's gonna be. No matter what's in there, the, that's the only LOD that acts this way.
20:00 Fixed is the, the way to, if you wanna have that value in there and it's not gonna change no matter what you put in the ve- dimension, you wanna use a fixed one, because that's the only one that's not gonna react.
20:12 Last but not least, we have the include. Exclude, um, actually I didn't really give into, give a use case. So say for example, calculating the total sales per region regardless of other filters that are in your visualization.
20:28 That would be one way that you would apply fixed.
20:31 Exclude is excludes a specific dimension without altering the visualization's granularity. So lets you ignore that excluded, um, uh, dimension rather than, you know, while considering others. So say for example, you wanna analyze the overall profitability while excluding a specific product category without changing the granularity of your ex- your visualization.
20:58 So those are three kind of ways, and then obviously I'll get into this in the next slide on the, on the syntax.
21:06 So this is the part that really scares people. Curly braces, keywords, dimensions inside formula.
21:12 Um, but here's the truth.
21:15 A reality expression answers just two questions.
21:21 At what level should this be populated, calculated rather?
21:24 And what math should be done there?
21:27 That's it. You remember those two things, or you stick to those two things, you're gonna be fine.
21:32 So as you can see here, uh, I have an example of what the detailed expression should look like.
21:40 Um, calculates the sum… Yeah, so examples here we have calculate the sum of sales for each category regardless of other dimensions.
21:49 That's the fixed, that's the fixed example.
21:52 Um, include includes, include the… This one here includes the average, uh, profit for each region, keeping the granularity of others intact. Um, calculates the minimum sales value, maximum sales value, excuse me, while, while excluding the, the product's influence. So these are three types here.
22:13 But remember, at what level should this be calculated?
22:17 What math should be done there? You remember those two questions, that's it.
22:22 Um, you can write the formula. Everything else is just the syntax.
22:26 So let's not make it too crazy, just keep it very simple when it comes to this.
22:31 Okay.
22:32 So what I'm gonna do is I'm gonna stop sharing slides. Your slide situation is over now.
22:40 And I'm gonna go ahead and open my workbook here. So let me end and close all these dang Windows that I have open.
22:48 And, uh, this is a good time to, to s- to maybe give a pause and say, "Does anybody have any questions of anything that I've seen?" And then Annabelle and team, I can make sure that these slides are available, um, and send them out to you, and you can distribute it to the masses however you want. So, um-
23:08 Annabelle Rincon: I will. I will send every… I, I will put them in a YouTube tomorrow, so.
23:14 Chris Williams: Okay. Right on.
23:15 All righty then.
23:18 Can you… Yeah, you can see my screen?
23:21 Annabelle Rincon: Yes, we can.
23:22 Chris Williams: Okay. Right on.
23:24 So I am going to move around some things.
23:28 So let me just do a sanity check. Um, is everything that I've talked about relatively low key and, and everybody's okay with it?
23:39 Are you, uh, if anybody who is nervous about LODs, um, am I hopefully bringing that anxiety level down?
23:49 Okay.
23:50 All right. Good deal. Okay. So if you can't see the… I'm gonna keep this both… I have this 50-inch screen, so I'm trying to organize things here.
24:00 Um, so I wanna start off here, and this is a workbook that we've been, I've been kind of playing with for a while. Um, so I have, you know, fixed LODs, and I wanna do a fixed example. Okay. So- Okay, you wanna do some cohort analysis on how many new customers we're adding over time, uh, broken out by month, how many new customers are adding per region per month.
24:26 So this is what you'll kind of see here, and this is a bar chart, and I'm gonna actually go to this sheet.
24:34 Okay?
24:36 So what you wanna do here for your fixed, I'm gonna go ahead and show you basically what this is about. So everything, the level of detail command that we're gonna be focusing on right now is the fixed.
24:49 And so it, it, it really basically focuses on the cohort date. So I'm gonna open this up, and I'm gonna edit it. So this field, it's a calculated field.
25:00 To do these, you really wanna do calculated fields based on whatever dimension you wanna, uh, elaborate on and start at, what's your basis.
25:08 So I'm gonna go ahead and click on it so you can see some of this. I know… Can you see?
25:13 No, you can't see.
25:15 Hold on.
25:17 I may have to share my entire screen. Um, you're not able to see the pop-up, are you? All right. So here's what we're gonna do.
25:25 We are going to share the entire screen so that you can see pop-ups. I've never understood why that happens.
25:31 Um, let me put you down here.
25:36 So can you see the pop-up now? 'Cause I'm gonna hide your other window.
25:41 Annabelle Rincon: Yes.
25:42 Chris Williams: Can you see? Okay, cool.
25:44 All right. So I know it's small. I apologize in advance. Let me see if I can, uh… So what this says is fixed customer name and order date.
25:56 So as I break this down in plain English, it- in plain English, it means for each customer, find the very first date they ever placed an order.
26:06 So here's what it's doing step by step, okay?
26:10 So Tableau groups the data by customer name.
26:16 It looks at all orders for that customer.
26:20 And, and-
26:20 Annabelle Rincon: Excuse me, Chris. Can you make, like, the text a little bigger on the window?
26:24 Chris Williams: Yeah. Let me see.
26:27 Annabelle Rincon: I know how to do that on a Mac, but not on your computer.
26:30 Chris Williams: Yeah. Let me see what I can do.
26:32 Annabelle Rincon: And Control scroll up will make the text, apparently.
26:37 Chris Williams: Let me see. Control scroll up.
26:40 Annabelle Rincon: Yes.
26:40 Chris Williams: Here we go.
26:41 Annabelle Rincon: Yeah.
26:42 Perfect.
26:44 Thank you.
26:45 Chris Williams: Yeah. Is that better? Okay.
26:47 So let me, let me go back, and now that we're talking about this. So what this means is, for each customer, find the very first date they ever placed an order.
26:58 So here's what Tableau is doing step by step.
27:01 It's grouping everything. It groups the data by customer name.
27:06 It looks at all orders for that customer, okay?
27:11 It finds the earliest order date, which is what this min order date is representing, and then it stores that data date as a fixed value for that particular customer, no matter how the view is filtered or broken down. Remember, this number, no matter what's going on in the visualization, will always be the same, no matter what visualization you put it in.
27:35 With that being fixed, you're defining how it, the, the aggregation… it, it is, uh, carrying on.
27:42 So that's one thing that you wanna go ahead and do. So it gives you– The calculate, the calculation gives you each customer start date, the month they became a customer.
27:56 Okay?
27:57 So why does this matter? This is why that matters for your cohort analysis.
28:02 So once you have this, you can convert basically into a month. You could do a date trunk or month or whatever and group the customers by their first purchase month, which is essentially what you're doing here in the columns. Let me move this. Let me close this guy.
28:21 I'll just hit Okay.
28:23 Which is what you're doing here.
28:25 You look down here, we're doing it by month. Let me see if I can
28:30 make this bigger.
28:33 Slightly annoying.
28:38 All right.
28:40 I should probably bold these at some point. Um, but yeah, everything's here by month. It's broken by region, as you can see here, and then you can see the counts.
28:49 It's a count distinct based off of the, you know, and this is the number basically that we're doing, distinct count.
28:56 And then you'll see that here. If I wanted to, we could see all these numbers here.
29:05 Break this down by region. You can go a little bit deeper if you wanted to, but this is basically for the, at the region level.
29:12 So effectively, this LOD explains the, creates the foundation or answering the question: When did each customer join us?
29:22 Which is exactly what you need to build a new, a monthly new customer cohorts by region.
29:30 So salespeople would wanna look at this and be like, "Oh my gosh, this is great," because what does this mean in a business sense? This means if you see a region that may be struggling in a certain timeframe or low numbers overall, like say for example, both of these, all these rec- you know, basically say, "Hey, this is December," and I mean January, February, first parts of the year are kind of slow.
29:59 If I were looking at this chart, I'd be like, "Hey, so did this spike up? This spiked up more than this, but this is only sixty-three for the month of March, where everybody is up either in the, at least eighty, you know, uh, seventy-seven.
30:14 Why is this one so low?" So you may wanna, you know, this visualization might inspire- Um, you know, a overall manager to look into what's happening in the South region and figure out why that number's lower.
30:29 That's what this fix will answer in this-
30:32 Annabelle Rincon: Excuse me, Chris, to interrupt you. You cannot, like, make it like the desktop fit the entire window because for the moment we see a beautiful view of, uh, of the, uh, night Skytree, but Tableau is very small.
30:47 Chris Williams: Let me see if I can do something else.
30:59 Annabelle Rincon: Yay, much better.
31:02 Chris Williams: Yeah, my big screen is not doing me any favors right now, so, um-
31:06 Annabelle Rincon: But at least people can, can see it better.
31:10 Chris Williams: Okay. No, is everybody okay? My apologies for that. A power move.
31:12 Annabelle Rincon: Yes, and you even have question, what happen if the customer purchase in more than one region?
31:20 Chris Williams: If the customer changes, meaning they move from one region to the next?
31:25 Annabelle Rincon: Purchase. Purchase. Purchase.
31:27 Uh, buy.
31:28 Sorry, my French accent is killing me. So you have a question from Pam, what happen if the customer purchase in more than one region? I don't think that that-
31:37 Chris Williams: Oh, when they purchase in more than one region?
31:40 Um, well, keep in mind that it's counting by customer in, you know… So say for example, this is just looking for a customer. It's not really…
31:52 Rats, hold on.
31:54 Let me go back.
31:56 When I look at this, d- remember, it's all about what you kinda put in here.
32:03 So if you wanted to do customer name and you only wanted to isolate a region as well, I mean, it's just, it, it depends on a bunch of things. It's looking at the date. So maybe if you have a…
32:16 If they were on different dates, then that would be something that, you know, we would probably put in there. If you wanted to… If it was possible really, to throw a customer in a different region, right?
32:28 Um, and you may have the same customer in a different region. That would be something that I would like to, that, that would be interesting to check. You could probably add something like, um, region here just to, to see if those numbers definitely change. So I can do something like that.
32:48 Now it's taking into account the region as well as the customer name.
32:53 So if there are duplicates or something like that, or crossover, people doing crossover regions, you can play with those numbers and see what that looks like.
33:08 Does that answer your que- I'm gonna change it back actually, but does that answer kind of your question?
33:15 Uh, because what you're doing right now is really you're basing everything off of this example, which is, um, this here,
33:28 this statement.
33:32 But you can add more to this. I, we just did it on customer name and order date. If you f- if you wanna go into deeper consideration for your cu- you know, you just add multiple, just a comma, and you add other dimensions.
33:45 So if you have that kind of granularity or that kind of potential, you know, thing. I mean, the one thing that I would probably change here is that I don't necessarily like using name because you may have that name entered twice or you may have s- you know, different spellings. I generally would use like an ID field if you… Something that's unique and almost like a, a key to, you know, whatever it is that you, you're gonna be referring to because IDs generally don't change at all.
34:22 If somebody gets, you know, changes their name or changes a different last name, changes marriage status, marital status, um, that could potentially be a double. So I don't wanna, you know, introduce wi- you know, too many, you know, one-offs, but you can also add region to this and get a, a much more finite number if you're worried about that.
34:44 Does that answer kind of what you were talking about here?
34:48 Annabelle Rincon: Uh, yes. I think, yeah, she said that. She thank you.
34:53 Chris Williams: Okay. Okay, good. 'Cause I don't want like the infinity screen to show up.
34:58 So, um, I'm gonna do an include example.
35:03 So right here, you, you may, you have… Let me go back. You maybe want to see a percent- which percentage of products are in that subcategory are unprofitable, okay? So this is where we would wanna take a look at your in- include statement here. So when you're dealing with an include, and I'm gonna go right to this page.
35:28 So what you're showing here in your text, you know, basically your, you know, your detail and label, you're showing the aggregate of unprofitable products, the percentage. Okay, so I'm gonna go down here and I'll show you what this is.
35:47 All right.
35:50 So you're basically saying in plain English, what percentage of products in this subcategory are losing money?
35:59 So again, I'm gonna break this down. Let's figure out, hey, what is each part of this doing?
36:04 Um, so look at each individual product, even if it, if the view is only showing subcategory or higher. That's what this first part is saying.
36:16 Add that up,
36:19 you know, your product's total profit.
36:22 And then if for some reason the product's total is negative, then return one, meaning that this project, product is, is unprofitable.
36:31 Um, so otherwise return nothing or zero.
36:35 So that's what this is, this part is doing.
36:39 So now Tableau has one for every unpro- profitable product and zero for the other.
36:46 And so it adds up all those ones and giving a number of unprofitable products in the subcategory.
36:53 Okay? Doing a count distinct of how many unique products exist in that category, subcategory overall.
37:00 And then finally, you divide the unprofitable product, unprofitable products over the total products. Okay?
37:09 And then out of all the products of this subcategory, what fraction or percent are unprofitable?
37:16 So that's what all of this does.
37:19 Okay?
37:20 So when you look at this, and I'm gonna close this guy, I could probably put this into a percentage. So this is like, you know, 66, you know, some of these are a little bit here, um, not so profitable.
37:38 You have this.
37:40 You can take a look at this as 4%.
37:43 So that's what Include will really do for you.
37:47 Okay?
37:52 All right, so, um, and I'm gonna wrap it up soon. So, um, let me do one last one. I'll do the include.
37:59 Exclude, excuse me. Jeez. Uh, and then I want to see sales percentage as a nat- as a percentage. I want to see state sales as a percentage of national sales.
38:10 So I have this map. Oh, rats.
38:13 Let's scroll down here.
38:15 Have this map, see the percentages here.
38:18 So what I'm gonna do is I'm gonna go into here.
38:25 Did I go into the sheet?
38:27 Go to sheet.
38:29 Okay.
38:31 So we have our
38:34 Exclude example.
38:37 So we have national sales. So you need to do two things first. You need to figure out what national sales really is, so I'm gonna go ahead and do that. So I do an Exclude Sales by State from Sum of Sales. So what is that in English saying? For each state that I'm looking at, I want to calculate the total sales for the entire country.
38:59 So Tableau temporarily removes State from the calculation, sums up sales across every state, and then repeats the national total for each state in the view.
39:11 That's what makes it useful for your goal. So that's what this is doing.
39:15 And then the last part of it is, is, you know, what percentage, you know, when you take a look at that… I'm gonna close this guy.
39:21 You take a look at… I will actually close this guy.
39:25 Percentage of national sales.
39:27 This is just a simple.
39:29 So Sum of Sales over Sum of National Sales. Okay?
39:33 So National Sales you def- you defined here. Okay?
39:37 So now what you're gonna do is when you look at each of these, you now see that, hey, this is, um, you have 920, you have 920 total sales.
39:51 You have 2 million, you know, you have 2 million of this. It's like 0.4% of the national sales.
40:04 You know, you have 920. So if you just wanna do that math, it's right there in front of you.
40:09 It can show you this and how you did that really if you wanna take a look at the label, or actually the tool tip rather.
40:17 And then you can see the state that this is your na- sum of national sales, and then this is your state sales, and then this is your percentage, which is the aggregate of this.
40:33 So now you can highlight all these states and then, um, get your numbers.
40:44 And, you know, you may wanna display this in a different way. This could get a little busy, but, um, you know, you always gotta start somewhere. So this is the one thing that you wanna do. So the LOD expression provides the national total while the normal Sum of Sales provides the state total, thus allowing you to calculate each state's share of the whole.
41:07 So that's one way that you can do it. So you can figure out from here what's working, what's not working, where we need to focus more of our sales on, and how we, we may wanna run some campaigns to try to get some of these other s- states over here to try to get more sales there.
41:27 Uh, we may want a targeted campaign based off of the information that you see here. You may wanna, wanna target campaign based, based on trying to improve a region, and that would involve a little bit, not just this, but understanding what sales have occurred and then maybe running, um, you know, something on tho- a special on those to really get more people to, to purchase.
41:49 So anyway,
41:53 that's all I have and, um, I'm actually going to go back to my window.
42:00 Where's my window? This window.
42:03 And I am going to stop sharing.
42:06 Annabelle Rincon: We have, like, uh, some questions. The last, uh, last example, for instance, from, uh, Ami, um, and Kimber, uh, asking you why are you, uh… No, sorry, not Kimber, but from Ami.
42:20 The chat is moving all the time, so it's difficult for me. Uh, why did you use, uh, the exclude example on the last one, uh, if you could have done it with a fix instead?
42:31 Chris Williams: You can. That's the cool thing about doing any of this, is that you wanna have multiple tools in your toolbox.
42:39 And the reason why we use a fixed over anything else is because I wanna use it everywhere.
42:45 So I mean, it could- doesn't matter. So if I want that static, then I can use it everywhere. If it really is something that you're only going to use for, like, a particular view that you wanna have influenced by other dimensions, that's when you would wanna make a dis- discrimination between, you know, fixed and include, or exclude for that matter.
43:05 You could do any of these in a multitude of different ways, but the thing is, is that if I, if I take… It's almost like the same sort of idea when you're, you're talking about, um, when do I use, uh, how many ways can I do things? If I find a need for a particular value in more than three or four areas, then I will try to streamline it, which means that I will look to try to build it in a fixed, and I may create one that's an include because I need it to respond-
43:39 Annabelle Rincon: Mm
43:39 Chris Williams: … to the other dimensions in your visualizations appropriately.
43:44 So
43:46 the answer to your question is yes, you can.
43:50 Uh, and the only thing… And the thing is, is that it's a matter of how deep you want that to go to roll with you on. So I mean, if you want it to change and evolve around everything else that's in your, your visualization, then I would lean on the include.
44:07 If you want something that's always going to be a certain value, like you can set it and forget it, it's always gonna be a certain value, you want that in your, your viz no matter what's going on, then you do a fixed.
44:20 Annabelle Rincon: And we have a… That was very clear, Chris.
44:24 Absolutely very clear, and I, I really appreciate. Uh, do we have time to take another question, Prasann?
44:32 Prasann Prem: Yeah, sure. We can take it.
44:34 Annabelle Rincon: Yeah. We have, like, uh, Scott. I mean, now there is a lot of question, but we will take, like, the first one, like I think would-
44:40 Chris Williams: Okay. Try. Did I confuse, capture? Did I make things more difficult, or did I make it clearer?
44:46 Annabelle Rincon: Exactly. No, no, you make it clear.
44:50 Chris Williams: Okay.
44:50 Annabelle Rincon: Can you describe when you would use LOD versus table calculations?
44:57 Chris Williams: See, that's it. I need to be very careful here, um, because
45:02 table calculations tend to irritate me. They get me, like, zero to, like, 50 to 100 really quickly because I'm like, "No, no, no, that's not what I want." Um, if I have an opportunity to define it myself with LODs, I will.
45:18 Um, I only trust table calculations for very simple aggregations, 'cause I end up getting really mad because I'm just like, "I wanted that dis level, and I need it here." And I… You know, it's just like, it's, it's, it's, it's very weird. It's like I'm very calm person, but table calculations sometimes really get me zero to pissed really quickly.
45:42 Um, and I'm just like, "I want this. Why is this so hard to understand?" Uh, I, I, and it, and, and it's not a right or wrong thing. It's just a personal preference.
45:53 Um, if I have to require this calculation to do multiple things in multiple places, I will go to an LOD first.
46:03 Plain and simple. Running count stuff, go ahead and play- roll with, uh, table calculations, especially when you're dealing with across or down, um, and trying to get those. That's a pain in the neck to build in LODs, so, uh, I'd rather rely on something like that for table calculations. But yeah.
46:26 Annabelle Rincon: Thank you very much, Chris, and if you have time, you, uh, please answer some of other question that we have in the Q&A.
46:34 Chris Williams: Yeah. I can, I can, I can stick around, and I'll answer some of the stuff, but thank you so much. Hopefully that was helpful.
46:38 Annabelle Rincon: Thank you. Thank you. It was perfect.
46:41 And now Shimdy will introduce Prasann.
46:47 Prasann Prem: Let me share my screen.
47:14 Sorry. Please keep it short.
47:20 Chimdi Nwosu: So our next speaker, we have someone who we all love and recognize, Prasann Prem.
47:28 Um, as mentioned before, he's founded a bunch of initiatives geared towards helping people get upskilled in Tableau.
47:36 He's got a lot of impact in the community, and today he's bringing the talk for us called KPI Cards Made Simple with Map Layers. He has taken this, done its rounds with it, so I think we're lucky that he's also bringing it here for us to experience. So I'm gonna pass it over to you, Prasann, to give us the good stuff.
47:57 Prasann Prem: Thank you so much, Shimdy. And thank you so much, Annabelle, for giving me this opportunity to be on Analytics TUG as a speaker. I think it, it was my dream to speak at this big stage, so thank you so much for that. And, uh, yeah. Uh, this is me, Prasann. Uh, I think I have been introduced twice already, and every month as well since you're here. This is me.
48:21 Uh, most of you, we might be connected through LinkedIn.
48:25 Uh, just before we start, a couple of things I want to share. There is one course I had sold earlier- Uh, but right now I'm not doing these courses, so I finally decided to make this all free. And, uh, also the content I have just restricted for one twenty days because if it is free forever, nobody uses it. So if you think there is someone who, who is in process of learning Tableau, uh, want to learn, let's say, all the concepts as well as dashboarding, design, prototyping.
48:57 There's actually one session by Chimdi as well that what are the lessons from data analytics industry, and there is also some sessions on Figma, Tableau Prep, lots of things with data actually. So finally, uh, I am going to release it publicly. I haven't released it yet. I'm still, like, trying to make some cuts, but I thought, uh, maybe I'll share it.
49:16 So if you know someone that can take help from this course, a really good course, intensive, I would say, let's say forty hours.
49:24 So, uh, please do share it with them. So I'll just share the link in case anybody needs it.
49:31 Um, also whatever we are going to talk about, the workbook is already on Tableau Public. I'll be sharing that link. So that's already taken care of.
49:41 And, uh, now before we actually talk about or build it live, talk more, get, uh, deeper into the calculation, let's do it, uh, from more like conceptual, uh, point of view that what it is, what we are going to talk about today. So, uh, this session I have already done at user groups. Uh, this December, I did a Data Fam Europe in London as well and quite enjoyed it.
50:08 So, uh, welcome everyone. So two KPI cards made simple with map layers. Uh, this is me. Again, Prasann Prem, uh, manager, Tableau visionary, uh, your friend as well, Tableau buddy. So what you will achieve today through this session that build KPI cards in a single sheet using map layers. Uh, I would say yes, uh, it reduces dashboard clutter. I can use all the words I want to, but I would say, let's say it's all about how you can actually get a grip of the layout and not just mislead yourself or go everywhere.
50:43 We'll talk about normalization. It sounds scary at first, but it's not. Then also we'll talk about how to apply geometric, uh…
50:54 Yes, uh, it is original content. Uh, it gets better as much as I'm doing it. So, uh, we'll also learn how to apply geometric coordinates to design custom layouts, then combine bands, variances, everything. So the whole idea of the session is not about that, okay, you can do this, you can build this, but to get you an idea that how you can leverage this whole concept of normalization as well as map layers to build something you want, to build a framework or build a dashboard or a KPI scorecard in the way you want so that you don't have to come down to a fact that, okay, this idea might not be possible because we might have to use ten sheets for that.
51:40 So this is the whole idea of taking this and doing this, though my team at work, like, they like it, but we also know that it can be tough to take over. So we're trying to more simplify it with time.
51:54 So this is something we'll get a hold of today. We'll build a, uh, I've used, uh, because I don't want to get into the complexity of, uh, introducing a new data. I'm just using sample Superstore. It's just, uh, region as well as categories. We have this big number, variances as well as the trend, and it's all in one sheet.
52:15 We'll try to make it as simple as possible.
52:18 So, uh, before we even talk about why do this, I think it's really important to realize that why even spend our time listening to me and talking about this whole concept of using map layers. Map layers is for maps. Why will KPI cards, coming down to normalization, uh, coordinate connection, and then finally we'll, uh, build it out in Tableau as well.
52:43 So why KPI cards using map layers? So before, uh, I even started this idea, I, I'm too lazy at heart. I don't like complicated things, so, uh, I tried it. I tried it without map layers. So one of the problems was, uh, let's say I want periods in all the grids. That's not possible.
53:03 Actually, if you use small multiples because, uh, it's going to be at the bottom, I can't control it, pretty much restrictions. Also can't use multiple layers, though you can hack the axis.
53:15 Again, use table calculations, do a lot of stuff. I don't like it. Again, it was too much window max going on, and I decided, okay, no, I, I don't think I can do this for long because to control this whole thing was becoming as complicated as I, I wouldn't have even imagined. So that was one of the problems. He-heavy set up with table calculation.
53:36 I think Chris was just talking about table calculations. Uh, for me it's more like, uh, uh, if you remember there used to be consoles and video games which had lots of buttons, and you would just press everything around to get, uh, what you want or play the game. Uh, sometimes I feel like that with table calculations. It, it's, it's good to a level, but then it gets complicated as well.
53:58 If you have multiple hierarchies, you have to arrange all of that. So no to table calculations. And yes, also limited flexibility to add or position anything specifically at a particular point on a sheet. So because of all these problems, I couldn't use small multiples, and that's when I decided that, okay, let's do it. Let's try map layers, and that's how the whole idea started.
54:25 So, uh, before we go on to the map layers, a normal concept, a simple concept, I would say normalization, it's more like a mathematical formulation that, uh, helps you to actually put all the numbers in on a scale of zero to one. So for example, if you see all these numbers right here And you can see on the left we have this formula, normalized value.
54:50 So for each of this number, if we have to calculate the normalized value, it's, uh, let's say this one is X, so X minus minimum, whatever the minimum value is in the whole set, and then divide by maximum minus minimum. So that's how we calculate the normalized value of any particular point or value. And, uh, when we do normalization, it's nothing, but you are actually arranging them out in a sequence of zero to one.
55:18 It's like putting all the numbers on a scale of zero to one. So it actually helps in standardization, and, uh, that's why this whole concept makes sense.
55:29 Uh, in normal ways, uh, you can make it complicated, you can think about so many things, but I feel, uh, to make it very simple in a simple language, it helps us find the proximity between two points or how far one point is from another on a scale of zero to one. To keep it just simple, just to think how it is far from each other, that makes more sense.
55:50 Now, uh, the coordinate connection, I think this is quite important to understand because, uh, when we are using our calculations on a map, it's latitude and longitude. But let's say when we are trying to build a KPI card, it's going to be X and Y coordinates.
56:06 So how does it work? So this is just an example I had used, and the source is actually Mark Reed's, uh, visualization on Tableau map layers. Uh, so if you can see, uh, if we– whenever we use the Make Point function, the first, I would say, value is longitude, and then it is latitude, and that's how we point a s- we can define a specific point.
56:31 Now, when it comes to KPI cards or X and Y axis, if you want to translate them, it's kind of same because longitude becomes Y-axis and latitude becomes X-axis, and that's how we can relate to that. So this helps us in understanding where to put these points or where to put our calculation, and that will make sense.
56:52 Now, layout logic and boundaries, it's important to understand that we should define boundaries. So whenever we are trying to use, we'll start with this concept that we'll define four base coordinates, or we can define actually minimum three. Because, uh, to define any polygon, or let's say, because here we are talking about rectangle, we need minimum thri-three points to define a rectangle.
57:18 So we need that. We'll define our origin. Origin is helpful because, uh, if you set a origin point as zero comma zero, then to gauge where to place other things becomes pretty much relatable and easy to do that.
57:32 And, uh, one more thing that let's not define the points in a range, uh, to, let's say, zero to sixty or going higher and higher, because what I've seen, uh, it's eventually a map. And when we– you do a Make Line, it actually draws a curved line.
57:50 So if you keep it in a very, I would say, specific less range, let's say zero to ten, zero to fifteen, it, it is a straight line at least. So it works for KPI cards.
58:02 Okay. So, um, now we'll head on to Tableau right away.
58:08 This was all the theory I wanted to share with you.
58:17 Okay, I-I think it's visible.
58:23 Okay. So, um, this is where we started, uh, defining the boundaries. We have all these points that are already defined. Now, uh, I always start with this. So we'll do this live build right away.
58:36 So first, what we are going to do is we, we need to bring our latitude and longitude. It's already there. That's fine. Then we'll place one of the…
58:48 But before that, I think we need to create that grid.
58:52 So we'll need region.
58:56 We'll put region over here and category
59:05 over here.
59:08 Okay, so this just creates a simple four cross three grid for us.
59:14 Now let's se- uh, start setting up the boundaries. That means our base coordinates. So first is, uh, this point. Then just to show you what it is.
59:34 Okay. So this is just Make Point seven comma zero. These values, it's static. We can make them dynamic, but let's go with static for now. It's just about setting the boundaries. So it is seven comma zero. So seven is our Y-axis, zero is our X-axis here. So let's place that as well. Now it's positioned. Now width is nothing to, uh, define the width.
1:00:00 The calculation will be, I think, zero comma twelve. That's what we are using.
1:00:13 Okay. So now you can see i-it's, it's arranging itself, right? But still it looks like a map.
1:00:20 And the next thing that I want to do right away is, now it's just about more formatting. So let's go to Maps.
1:00:30 Let's go to Background Layers.
1:00:34 And we'll do a washout.
1:00:36 It's all clean now.
1:00:38 That's what we want to build our KPI cards.
1:00:42 What more?
1:00:43 I think there is one thing I don't like, and that is this, these features actually So we can also disable them from our map options.
1:00:56 We'll just remove them.
1:00:58 We don't want anyone to click or zoom or do anything like that. Okay, so we'll start with the simple things that are, uh, setting up the band and everything.
1:01:09 So our first placeholder, we already have this, so we'll do it, uh, let's say we'll select the top left.
1:01:17 And, uh, one other thing is with maps, it is actually hard to position elements. So what we are going to use is we are going to use shape.
1:01:28 Now if you see, we have these shapes.
1:01:31 Always, uh, if you don't have, you can always get transparent image als- or you can look up to… There are many blogs, uh, which where you can find how to create a transparent image for yourself. So now this is just a transparent image, and now I'll just put my current sales on the label.
1:01:50 Okay. Now, this is just more about formatting. I can format it to the left, make it more bigger.
1:02:02 And, uh, the shade that you're seeing, it's, it's a halo effect actually. So you can remove this. I'm not going to spend more time on formatting and making it very specific right now because the most important idea to, uh, build here is not the numbers, because it's just position and numbers, rather than how to build a trend actually. That is actually the complicated part.
1:02:25 So let's start from there. Okay?
1:02:29 Now, the first thing is to set up the base.
1:02:33 That is our axis.
1:02:35 So if you see my baseline, I'll just show you the calculations.
1:02:45 It's just, uh, again, coordinates. This is our starting point. This can be zero. It's, it's just I've used this, uh, to make it more specific, precise, shift it around.
1:02:57 Uh, so it can be zero comma zero as well, and this is zero comma twelve point five, or it can be twelve as well, just to extend it on the ends.
1:03:06 So we'll take this and we'll place this as well. Now we have a simple straight line.
1:03:14 Also one of the things you can see over here is there are two points that we don't need, so actually we can just hide it for now. So width, we can hide it, and we can also hide the other one.
1:03:28 So now one more thing with the axis, we don't want them to highlight, so not just the calculations, but I'm also slowly going through, uh, whatever the features that can help you out. So from here you can actually disable selection. Now it's not– you cannot select it. That's always useful in map layers. I'll just make it a bit thinner. Um, I'm a bit, I would say, frantic about how it should look like, so but don't wanna spend more time.
1:03:57 Okay. So now we have this simple axis for ourselves. Now what do we need? What more do we need here to place our bars? Because we are trying to build something like this, which eventually can also be like this. This is actually our end goal. So we do have the big number. We have this line over here. Now we want the periods, we want the bars, and that's where the whole calculation, normalization, everything comes into the picture.
1:04:30 So now the first thing is to see how all these things are being portrayed or how the numbers. So, uh, to do all of this I always build a tech table, not to export it, but rather than to understand how the whole numbers works. Right. So one of the…
1:04:53 Sorry, notifications. So, uh, what I'm doing right now here, I've created a parameter that takes on the current date. That's just to show you that it can be dynamic and, uh, based on that, there's a simple calculation which is for rolling period. I can show you that calculation, but i- it's a simple calculation to how you can actually select, uh, the last twelve months.
1:05:20 That is kind of standard, and there are multiple ways to write this calculation, so I'm not going to deep dive. But rather than, uh, what I'm doing here is that based on that I'm just trying to define that, okay, whatever the current date selection is, you need to get only the last twelve months. That's all. That's what it is. And there can be different ways to write this calculation.
1:05:47 So now my current date, let's say, is thirty-first December two thousand twenty-four, and if you can see, I've placed my region category. That's– Those are the two dimensions that I have, and based on that, I do have all these periods from October '24 to '23. Now the next thing that I need is I need labels, but I can't use directly from the date, so I need to actually just play around with some string calculations so that I can make them specific to that.
1:06:18 So for that, I have this calculation that is actually nothing but based on the rolling period. It's just a filter inside because, uh, so that I don't have to put it on the map layers, and it is just creating this name that you can see here. M– It's just a string calculation, nothing very specific. Then what is important over here is your custom date period sort.
1:06:44 It, it is more like a sort that I have defined so that I can place all my periods in a specific order.
1:06:52 Now again, this is just to define a sequence of numbers that can help me out. Now, if you see this date diff calculation is nothing but on the basis of months, uh, this is– on the basis of month, it is just taking the date difference in terms of month, and I've added negative. Now, it can be positive as well.
1:07:18 Uh, why? Because I want my current period to be zero. It's just to, uh, also, I would say, handle my calculations well.
1:07:29 Uh, and I'll show you how it helps. And it can be, it can be in other direction as well. No need to use minus, but this is just one of the approaches how I'm doing it.
1:07:40 So this is just one of the calculation, and you can see based on that, we are getting zero to minus twelve values. Now, the next thing, because we can do this over there as well, but what I need to do is, rather if I don't do minus, I, I can end up with this, but, uh, I wanted to use normalization so that even if, let's say, there are different numbers that are coming, it should always be in that sequence.
1:08:07 Now, how we are defining that? So let's say if we look at this particular calculation. Now, that's where, uh, it's a, it's a normal LOD calculation that uses the custom date period sort. But if you remember the normalization calculation, which was something like take the current value, subtract it with minimum, and then divide by maximum minus minimum.
1:08:36 So similarly, what I'm doing is, because I need a dimension, I already have the string calculation for that.
1:08:43 I'm using the fixed, and then I am just taking this filter that when this b.rollingperiod, because that just takes only those selection of periods.
1:08:58 So, and then we are taking these values.
1:09:01 These are actually repeatable calculations. If, if you use my workbook, you can just, uh, replace them. And Steve and Tori also did one of the sessions at DataFam Europe where they used my dashboard, plugged it with a different data source, and it worked.
1:09:16 So, uh, yeah, you can reuse. So no need to like, let's say, very much go into like how these calculations are being written, but rather to understand that what is being done here. So it's just taking those values and doing normalization, and then I'm multiplying it with twelve minus zero, because twelve is my width, basically. I can actually remove this zero as well to not make it complicated.
1:09:42 And what happens with this is when you do the normalization, the numbers will be in the range of zero comma twe– zero to one. But then when you multiply it with twelve, it actually comes in the form of actually numbers which are in the range of zero to twelve itself.
1:10:00 Now, similarly, now if I take sales. Now with sales, I have all these values for these particular periods, but I can't put all of these numbers directly on my map. So first, let's say, uh, let's put our bars or the periods on the label here. Okay. So let me show you what this calculation means. So it is nothing but zero comma c.barperiod, which specifies basically that position which we just saw right now.
1:10:39 So I'm going to place this.
1:10:42 So now I have all these points.
1:10:45 I'm going to place this in detail, and then I'm going to place these on labels. Now, it's again, the same thing about all that formatting and stuff, which you can do and make it more smaller, and it actually stretches based on whatever your space is.
1:11:07 And we can format it. We can make it more down, position it, because it's all, it's all coordinates, right?
1:11:14 Let me make it maybe shape as well again. Yeah.
1:11:19 And because with shapes, actually it works bet-better.
1:11:23 That's what I've seen, and you can always use your transparent image with that.
1:11:31 Okay.
1:11:36 So now we have our, all of our trends, all of our periods, basically, not the trends. Now it's time to draw the bars, actually, for these trends. Now to do that, what do we need is…
1:11:50 We have the sales that is already there, but directly we again can't use the sales, right? So for that, again, we need to normalize, and what we are going to do is, I'll show you a couple of calculations that will help you. Because again, we do the normalization. What we need to do is whatever the set of calculations, because now normalization here for sales is dependent on what the axis would be.
1:12:17 Is it for all the periods, or is it for all the regions and categories over here that are present? Based on that, you would like to define the axis. And only based on those points you would like to have the minimum and maximum.
1:12:33 So that's what we are going to do. So now here, if you see we have, uh, c.baramount, minimum, maximum, and then some normalized value.
1:12:43 So let's just check out some of these calculations.
1:12:49 So now if you see this bar amount calculation
1:12:54 It is nothing but we are taking the L.MAP_PERIOD, which is nothing but our period, because we need that dimension.
1:13:03 And then we need region and category, because these are the only three dimension based on which partitioning is happening.
1:13:10 So we'll– we are taking this, and then we are just summing it up based on the rolling period calculation that we already have. So it takes only those set of numbers and then sums it up, and that also gives us unique values for all these three dimensions.
1:13:28 Sorry.
1:13:29 Now we have this calculation.
1:13:32 Now, nothing changes, but now wh-when we are talking about this whole set, we're taking the minimum and again making it fixed. Now, this means based on whatever all these values we have, when this B.ROLLING_PERIOD is being applied, we are taking the minimum, and this calculation gives us something like twenty-nine point sixteen. Twenty-nine point sixteen, if we see on our sales, it's somewhere in South, I remember.
1:13:59 Yes. In South technology, this is the minimum number that we are getting in all of the values that we have right now in our set or the selection that we have for all the periods. So that's how we are getting our twenty-nine point sixteen, because we need it on the same row actually to calculate it. Now, similarly, we need the max because to calculate the normalization, we need the max, and we just duplicate that calculation and put max in place of minimum, and that's how we get it.
1:14:29 Now, once that is done, we just need this calculation actually, which is nothing but we are again doing
1:14:41 the C bar amount, which is nothing but the amount itself, and then we are subtracting it with minimum. Again, applying the normalization formula, and then we are multiplying it with a multiplying factor, and that is nothing but the height of your bar. Currently, I've placed it six because if you remember the starting point and the top point, that was around seven, so I've placed six.
1:15:07 And, uh, bec- why a parameter? Because then you can actually just put a number C, whatever the height or the maximum height you want for this bar altogether.
1:15:18 Okay. So now we have this calculation. The next thing that we need is, because we can't just use it directly, so we need to put this calculation in this format, actually.
1:15:31 Now, if you see, this is nothing but Make Line.
1:15:39 Okay.
1:15:41 Hmm.
1:15:42 So this is nothing but– to dra-draw this bar or anything, it is nothing but Make Line. We are not doing any sorcery over here, but it's just Make Line, where we are defining the starting point. That is our zero comma period. So zero is our Y-axis and then all the periods. And then the next point where it is going to join. So let's say the first Make Point is our bottom point on the zero or the baseline, and the second Make Point is where the height is going to be.
1:16:14 So now when we are going to use this over here,
1:16:22 it will build all these bars.
1:16:25 And, uh, that's how it works. Actually, now, now you can actually now here, if you see it's not working and it's highlighting everything because actually you need that dimension that defines this period. So we'll just put L.MAP_PERIOD. Now you can actually define each of these bars. You can actually play around with them and modify them, make their height if you want them bigger, whatever.
1:16:52 It's, it's more– But because once you understand how these coordinates can be placed, how these bars can be drawn, it's nothing but playing around with calculations and drawing these things at your own will. Right. Now, uh, now one of the things with maps is that when you're using this particular map, you can actually draw these points.
1:17:16 But if you use any of these other marks, it always draws from zero.
1:17:21 So actually you don't need Make Line if you are doing any other shape.
1:17:26 So let's say I can use, uh, area.
1:17:30 It will make an area chart, but the proportion is not actually same, and that is fine.
1:17:36 Uh, we can also do line.
1:17:40 You can actually do all of that actually. So let's say if we do area, and, uh, now with this, we can again place another l-layer on top of this, make it line.
1:17:56 Again, we need that L.MAP_PERIOD to define the line.
1:18:00 We can– It, it's more about formatting, just, uh, whatever you want, basically. You can actually do around it. I'll just make it black. And there was one calculation, uh, if you see over here, there are a lot of things, it's gray, and then there's an indicator as well. So what I have done, and that's why I actually defined this whole, uh, zero date difference, if you remember this calculation, because, uh, I'll show you this calculation.
1:18:30 What I have done is it helps you to identify, because now since you already have this custom date period sort for minus twelve to zero, and you want any of these points to be highlighted. Somewhere, I remember we always needed these two endpoints because, uh, we wanted that, that where it is going from, uh, start to end. So it, it will help you define.
1:18:53 You don't have to, let's say, do table calculation, last of zero, first of zero. You can actually use these numbers directly, and I'll just put it over here. Now there is a bar. I can actually use circle.
1:19:04 On top of it, and there it goes.
1:19:07 Right. Now, similarly, you can define many points. Do, do whatever you want with it, actually. Like, uh, it's a whole game around, uh, to actually leverage this whole, uh, map structure in the form of XY coordinates, and, uh, that is what it is about. Uh, it's pretty simple if you get a hang of it, and, uh, quite interesting as well. Uh, you can design whatever you want, and, uh, you don't have to do multiple sheets.
1:19:39 Uh, maintenance will be easy. Uh, it's, uh, once– You need to definitely document these calculations, otherwise it can be a mess for your developers. But other than that, I think it's a great approach to do things, and it keeps it simple enough.
1:19:54 Now, uh, there is, uh, one thing around this calcul- uh, this whole idea is that this whole normalization and everything, it works very well when there are all positive numbers. But when there are also negative numbers, it doesn't works well. Can anybody tell me, like, uh, why with negative numbers this all calculation will not work? Any ideas around this?
1:20:19 Any thoughts?
1:20:25 Annabelle Rincon: The origin. You have to get– to recalculate the row with the origin, no?
1:20:33 Prasann Prem: The world is not flat.
1:20:35 Yeah. I, I think it's, it's also about, uh, let's say whenever we are doing, uh, normalization, uh, the minimum value is zero.
1:20:43 So what it is going to happen, it's not going to actually dip it or invert the chart because it's just, uh, we are actually– there is no, uh, axis that helps us draw these charts, but we are playing around with coordinates. So if we do the normalization, whatever the negative or the most negative value is, that will always be zero. So it just doesn't helps with the same set of calculation, and that was a big problem at my place because, uh, I worked for a bank.
1:21:11 We had all these KPIs, net profit, net impairment, that can be positive as well as negative. So, uh, it, it was actually, this whole solution was fine, but it was failing as well.
1:21:24 So that's where I actually, uh, tried to solve it in a different way. But I would say it just more of an illusion that how you can play around with it. And what I did was, if you see this whole solution, it uses the almost the same set of calculations. But rather than what I'm doing is I'm actually shifting all these calculations if the values are negative.
1:21:53 Now, the whole approach here is where it gets a bit complicated as well to help you understand right away, right here.
1:22:01 But, uh, I'll try to, uh, just try to, uh, I would say, go around it and show you what I'm trying to achieve here. So let's say for the ma-map baseline, what I have done is I already had my multiplying factor so that I don't fix values, but rather than if I want to move it around, I can have it dynamic. So I'm actually dividing it by two. So that means where in my last KPI grid, I was using zero as my base layer or my baseline, here I'm using three because my multiplying factor right now is six.
1:22:42 So whatever my whole bar length is going to be, I'm actually cutting it in half, and in between I'm placing this. There's a different way we can do this, but that will be a better solution based on actually the minimum we can shift the axis, but let's not make it that complicated. So, uh, I'm just splitting this whole area that I have for zero to six, where I was drawing bar into halves.
1:23:09 The first upper half is for positive, the lower half is for negative. I'm keeping it simple right, uh, right now.
1:23:15 So that's why my zero line or my baseline is in between right now.
1:23:20 Now, the second thing is you can't actually use the same calculation to define this. So what I needed was, I needed to do this normalization not based on its original values, but rather than on its magnitude or its absolute values.
1:23:38 So that's what I did. I actually did– Again, it's all the same calculation, but I'm actually taking the absolute values wherever for profit. So if you see all these calculations, I do have all this with absolute.
1:23:55 And the final normalization that I'm doing here, which is this calculation, if you see, uh, this is all the calculations with absolute ca- absolute values, and after that I'm doing this normalization. So now normalization is happening on the magnitude rather than positive or negative values.
1:24:16 So that helps.
1:24:21 Yes, tooltips are pretty much doable.
1:24:24 Everywhere, wherever you want, you can have the tooltips. I haven't, like, polished it, but you can have it anywhere, wherever you want.
1:24:32 That's not a problem. But wherever you want to disable it, you can disable it. You don't need to put a blank or let's say do true or false, de-highlight, lots of other hacks. You don't need to do it. You can actually just disable it. So now, once you have done normalization, you can't use it directly actually. You also need to have these calculations which actually help you understand the values without normalization.
1:24:57 Now, if you see this calculation where it is actually defining…
1:25:04 Where is this one?
1:25:06 So now what is happening, we are actually checking.
1:25:11 Now this C.bar profit is actually the calculation which is just giving us the value at each point, and it's not a absolute value. It is actually checking whether this particular value is positive or negative, just the value. And based on that, it is making a line. So let's say the value is positive. Now, where will our be our starting point? It should start from three, right?
1:25:38 So the Make Point, the first point is this divided by two, that is three. And again, bar period is the same.
1:25:50 And when– and the second point will be, again, this part, which is the starting point, plus the normalized profit divided by two. So whatever the normalized profit magnitude v- is, we are also dividing it by two so that we can fit this in the upper section itself.
1:26:10 Now, else, if it is not positive, it has to be negative, and that's where it again start from three, but it has to be inverted. So rather than adding the value to the multiplying factor divided by two, we are subtracting it, and that inverses the chart in the opposite direction, if you see these bars.
1:26:31 It can be more precise, let's say, because, uh, right now if we see this whole section over here, very, uh, there are only few, uh, bars which are going below, right? So actually we can take the maximum negative bar, and based on that we can, uh, shift this axis. We can make that dynamic happen. It's, it's more about how you want to control it. But if you don't, uh, want to get it that dynamic or complicated, I think it's a good solution to split it in half and play around with it.
1:27:06 And, uh, one question that you had was, uh, I can see here, if you disable tooltip one layer, all layers are disabled.
1:27:16 I actually don't think so because, uh, if we go back to this one, I actually disabled for some.
1:27:23 So let's say if we disable for, which one? This one.
1:27:29 Let's say we disable selection.
1:27:32 So here you don't see anything, but here you still can.
1:27:35 Because otherwise it, it won't help, right? With, with map layers, if you, if you, if you can't disable and enable for separate layers, it just doesn't make sense to play around with all these different layers. So, uh, that is that. And, uh, the– it's just a framework, again, to help you understand how you can build lines, areas, bar charts, different variations.
1:28:00 There can be more examples to this, but, uh, this is all, uh, you can, uh, take it from there, use it in, uh, your workbooks. You can also let me know if you have any questions. So, uh, that is all. Uh, and thank you so much for hearing me out.
1:28:17 You can actually take this workbook, which I've already published on Tableau Public, and you can download it, play around with it.
1:28:27 It uses the simple sample super stores, so no problem with that as well.
1:28:36 Okay, so I think I'm over time.
1:28:43 Chimdi Nwosu: That was great. So thank you, Prasann.
1:28:49 Um, so I think in the interest of time, Prasann, if you don't mind, maybe just if you could run through the Q&A. I think there are some questions there. And for everyone, this workboo- workbook will be made available. It is already on Tableau Public, so please do check it out, re-watch the video, and you should be able to make some of those connections there.
1:29:15 Awesome. So last but not least, but not least, we have another awesome speaker, Doc Kevin Lee Elder, and he's a longtime academic and industry leader in analytics, data fluency, and visualization.
1:29:29 He currently teaches and writes on business analytics, business analytics principles, and works part-time, um, at Dre- Dresner Advisory Services, where he contributes to some research and analytics stuff there.
1:29:45 He's also a lead for viz for Social Good. It's another challenge in the community which is very impactful. For those who are not yet aware of it, I would encourage you to check it out on the Tableau Community page. It gives you an opportunity to support a lot of initiatives that are, you know, definitely, uh, world-changing and impactful.
1:30:07 He's also done a bunch of speaking at global conferences including TC, Fringe Festival, SAP TechEd. So we're definitely getting someone who is, is no stranger to, you know, disseminating analytics information.
1:30:24 If you ever wanna talk about accessibility and color and design, definitely, you know, Dr. Kevin has a lot to say about that. So you can always hit him up for a conversation on that. His talk today is about, you know, the first steps of building accessible dashboards, which is, again, can we see the data?
1:30:44 So I'm gonna pass this off and, so that we can get the goodies.
1:30:51 Doc Kevin Lee Elder: All right. Thanks so much. Can everybody hear me?
1:30:54 I'm not-
1:30:55 Chimdi Nwosu: Yes.
1:30:55 Doc Kevin Lee Elder: I'm not muted.
1:30:58 Uh, yeah. viz for Social Good is no more, unfortunately.
1:31:03 Uh, viz for Social Good got shut down last year.
1:31:07 Um, but in its place, uh, several of the leaders for viz for Social Good have started datachangemakers.org. So tech a- check out datachangemakers.org.
1:31:20 Um, we have a current project running right now, which my students are going to start working on next week, um, because I've always felt like we needed to take our skills and pay it forward and to help folks out.
1:31:33 Um, so as, uh, mentioned, my name is Doc Kevin Elder. I have a new official title. I need to put it on all my slides now. I am the Jerry A. Moore Endowed Professor of Analytics and Cybersecurity. So first time in my almost 40-year career, I'm now an endowed professor, which means I got a couple of dollars to, to, uh, spend on my research activities, so that's kind of nice.
1:31:58 I'm teaching down here in Louisiana to get away from the snow and ice, and then over the weekend we got hit with snow and ice, and we have no idea what to do with it.
1:32:08 Um, but, uh, uh, today I want to talk about giving you guys some advice from the colorblind, because, um, there are so many folks out there, uh, who give advice and most of them are not experts, and almost all of them are not colorblind. Um, so they're trying to tell you what things work for colorblind when they're not colorblind. Um, whereas I am totally colorblind, uh, and have been teaching my students.
1:32:33 In fact, I bring folks in as professor for the day, and I still have a few openings in February, Annabelle and others.
1:32:41 Uh, if you want to record a quick lecture and then come in for a live Q&A with my students, um, I'm looking for folks to come in and talk about taking their, uh, analytics skills to the next level. So Prasann, you just showed how to take it to the next level. Um, Chris just did take it to the next level. Lots of examples of how you can take it to the next level.
1:33:01 Um, but I always do a color presentation in all my classes, and when I bring back my alumni, that's the only thing they remember. And I'm like, "That's good, because, uh, you learned something useful." Uh, I finally gave this talk at TC '23, uh, back in 2023.
1:33:18 Uh, and I had almost as many participants as we have now, although we've lost 100 pr- participants from our peak earlier. Um, but glad to have a big crowd here, um, like we did at TC '23. So, uh, I've got, uh… Whoa, let me switch screens here. All right, there we go. So I got the forward-looking statement. I don't think anybody has showed this yet, you know?
1:33:40 Don't, don't invest on anything based on me. Uh, I don't work for Tableau. I just love Tableau and have been using Tableau since, I think, Tableau 7, which would be, like, 2012.
1:33:52 Um, so, uh, maps have come a long way, um, as have a lot of things in Tableau.
1:33:58 Um, but what I want to do today is I want to show you how we see colors because most of you have been taught wrong. I want to show you, uh, that most likely colorblind is not an on or off, and that we really ought to be talking about color vision deficiency, not colorblindness, because colorblindness makes people think you're blind and you can't see it.
1:34:18 No, it's not that we can't see it. We see it differently, and so I want to show you what that looks like.
1:34:24 Um, and then give you some advice on what to do.
1:34:27 Uh, and then hopefully we'll open up some tools here and take a look at the tools. I will make all these slides available because I'm gonna fly through these slides.
1:34:37 Uh, I think the, at the Atlanta Tableau user group, I did 200 slides, so I could do a lot on this or I can do a little. Um, and so I always like to put a lot in the slide deck so you can look at them later. Um, when people find out I'm colorblind, I always like to do some colorblind jokes. So are you colorblind? No. No, but in red.
1:34:58 Uh, so I usually put this slide at the end, but I thought today I'm gonna put it at the beginning and the end. Because when you are creating these data visualizations, you've got, as you've seen from Chris and Prasann, we got numbers, we got letters, we got shapes, we got colors, we're doing calculations. We've got a language, Annabelle, that we're trying to translate, uh, from different languages.
1:35:20 That may not be our first language, and Tableau is definitely a language, uh, to, uh, itself.
1:35:27 Uh, and so, uh, you're trying to put it in context, but you've got to see it. Um, if you can't see it, then all of this is lost. You're making it hard to do all of the above if you just simply can't see the colors.
1:35:43 Um, so again, how do we see colors? We see colors because in our eyes we have cones and rods which allow us to see the reflection of light on objects, and we have, uh, cones that allow us to see things in a blue color. We have cones that allow us to see red, and we have cones that allow us to see green.
1:36:05 And so most people were taught the color wheel in elementary school. I gave this talk to the K through 12 teacher TUG group and said, "Stop teaching the color wheel. It's not blue and yellow make green. Um, it's red and green make yellow."
1:36:22 Annabelle Rincon: Sorry, uh, Doc. Can you put it in a slideshow so we are sure to, to have, like, a better vision?
1:36:31 Doc Kevin Lee Elder: Um, I think the slideshow is pretty much-
1:36:32 Annabelle Rincon: Because some people don't have, like, the, uh, full screen option on the top, uh, on the top of the screen.
1:36:37 Doc Kevin Lee Elder: This, this is giving you the full screen slides here.
1:36:40 Annabelle Rincon: I-
1:36:40 Doc Kevin Lee Elder: This way I can see you all and see what it looks like on the screen.
1:36:44 Annabelle Rincon: Okay. Because we still see Dr. Elder TC '23 on, uh, on the screen.
1:36:48 Doc Kevin Lee Elder: Yeah, yeah, yeah, yeah.
1:36:49 Annabelle Rincon: That's okay.
1:36:50 Doc Kevin Lee Elder: But if I, if I start the slideshow, then I'm not gonna be able to see my screen.
1:36:53 Annabelle Rincon: Ah, you're not. Ha ha ha.
1:36:55 Doc Kevin Lee Elder: And so I want to be able to see any comments, questions.
1:36:57 Annabelle Rincon: So people, you have, like, your s- square, square on the top, uh, right corner to be able to make it bigger.
1:37:08 Doc Kevin Lee Elder: Yeah. I mean, I could do the slideshow, but you're not gonna really see a whole lot more, uh, you know Where's the slideshow? Slideshow. 'Cause now I can't see anything except for these slides, but you can see them bigger.
1:37:24 All right, so again, you- you…
1:37:26 red and green make yellow.
1:37:30 Yellow is not a primary color.
1:37:33 Yellow is a combination of blue and red.
1:37:36 Um, so again, I provide these slides for you just to dig into this more, for any of you who want to dig into it more.
1:37:43 Um, but we have these cones and rods, uh, and it makes it so that we can see color. Now, I googled this about 10, 15 years ago, and colorblindness, according to Google, doesn't directly lower your life expectancy. However, it could affect someone by, for example, making them not able to tell the difference between the red and green on a stoplight and being killed in an accident.
1:38:07 Really?
1:38:07 Um, I get that a lot. How do you tell, uh, red, green, and yellow on a traffic light if you don't see colors? We do see them, they just look different to us because we either have less of these cones and rods in our eyes or we don't have green at all. Some people are green color blind, and so they don't have any green, but they see everything as a combination of red and blue.
1:38:33 Um, and lots of people say, "Well, it's such a small percentage of the population that are color blind. Why should we bother about it, doc?" Well, let's just… Example of what your eye would… what people with normal vision have. You've got, uh, a lot of red cones, you've got a lot of green cones, you've got some blue cones.
1:38:52 Um, over time, everyone is going to get older. Everyone is going to lose some parts of their body, uh, including your cones and rods. So everyone will become color blind over time. It's not an on or off. It has to do with how many cones do you have to be able to see colors, and over time you will effectively have less. So everyone will eventually get color blind.
1:39:17 So what's my prevalence of colorblindness around the world? It's everywhere. It's everyone to one degree or another. Um, so again, lots of, uh, experts out there, uh, have lots of examples and they tend to use the color wheel to show how colors are made, and they really need to be using RGB. I mean, we even called our monitors RGB back in the day: red, green, and blue.
1:39:44 So how do we test and see whether you're color blind or not? Well, we put up these plates, and these plates, uh, have different colors in them. And so it allows us to see which ones of these you can see easier than others. So in the chat, which now I can't see, uh, put in what, what numbers you are seeing in these slides, uh, in these plates. There are nine numbers there.
1:40:10 How many of them can you see really well? How many of them are, "Boy, that's kind of hard to see"?
1:40:16 Um, so give you a second here to take a look at them and again, um, you can grab the slides and do more of this later. So you should have seen six, three, five, nine, five, eight, five, nine, 10 in those slides here. And again, some of them are easier to see than others because some of them you have a bit of color blindness. So we can play with this.
1:40:41 So here, uh, I've taken all of the red out.
1:40:45 And so by taking all the red out, if you have green or blue, some green or blue color blindness, this is harder to see than it was before when I had red mixed in.
1:40:59 Here I have overloaded with green. Red is still there, but now I've overloaded it with green and if you had green color blindness, this would be really hard for you to see. Whereas for everyone else, it's like, "Wow, look at all that green." Um, here I have overloaded the red. Green is still there, but it's got a lot of red and if you, uh, have trouble with green or blue, then you're not gonna see the subtle differences.
1:41:26 It gets buried in all of the red. And then here I've taken out all of the green to show you what it looks like if you can't see green at all.
1:41:35 So again, we can take these tests, we can find that you are color blind. My kids, when they were little, we did these kind of tests. What image do you see here?
1:41:45 For those of you who have pretty good vision or a small amount of colorblindness, you all should be able to see what that image is there.
1:41:57 Throw it into the chat. How about this one? What do you all see in this image?
1:42:03 What image do you see? What number do you see?
1:42:08 What shape do you see?
1:42:12 What word do you see?
1:42:15 Actually, there's nothing in there. Just to give you all a feel of what all those other ones look like to me. To me, these all look like this until I train myself on the colors to actually see them to be able to see what they look like. I love to give real world examples to folks. So here I have taken out all of the red. So if you are red, uh, color blind or you have red color vision deficiency, you don't see red but you do see it.
1:42:45 So here is meat and they have varying shades of red and so you're my mom and you want it to be rare, you want it to have a lot of red in it. If you can't see red, it's kind of hard to tell which one of these is the rarest. And if you were like my dad, he liked it well done.
1:43:04 So which one is the well done? So in this one, one, two, three, or four, throw it in the chat. Which one is the well done? The one with the least amount of red.
1:43:14 Hard for you to do because there is no red here. Red is a different color showing you what it looks like to someone who can't see red. They see it, it's there, but it's not red to you, to most of you. Which one is it? One, two, three, or four?
1:43:30 It was actually four is the most well done. All the others have a lot more red in them, or a lot more like my mom liked them. Even that four, it's gotta be a lot more blackened, um, for my dad.
1:43:42 Um, and we see these all the time in sports. They like to do these baseball spray charts. Oh, isn't this lovely?
1:43:49 Except for those of us who are color blind, it's really hard for us to see and tell the difference between those colors. There's, you got red at 35 and, and green at nine, but now you come over here and that 35 looks like that nine. They're very, very similar when we have trouble seeing color. Um, Tableau does this. When I speak at Tableau, they give me a template.
1:44:14 It has all these colors all over it.
1:44:17 I usually will try and find the one that looks the best for us colorblind folks, which for TC23 were the green ones over on the right. Those show up better. All these other ones, the colors mix too much. The shades are too similar. It's hard to see them.
1:44:35 I put them in for approval, and then they changed all my slides and put all that color back in there. And I'm like, "Why? Why are you doing this?
1:44:43 Um, please, I'm trying to make the point, um, that if you make it so that those of us who are color blind can more easily see the colors, can more easily see what you're trying to show us, you will make it better for everyone." So it's not just for the color blind you do this to.
1:44:59 Everybody has a little bit of color blindness. Everybody has some color blindness, and so you're straining to see the colors often when you don't need to.
1:45:10 Um, and so we get lots of advice from the experts. Oh, we've got a color-accessible palette. Use it.
1:45:16 Um, no, please don't.
1:45:19 Um, so here for TC23, I pulled up the palettes.
1:45:23 Um, they're still pretty similar. They haven't really changed much since whatever, 23 dot what? Probably a 22 dot that I pulled this off of. These are the Tableau, uh, 10, the Tableau Light, the Tableau Medium.
1:45:39 Um, here's what they look like to me.
1:45:41 Um, again, pastels come in.
1:45:44 Oh, people love to make pastels all over their charts and their workbooks.
1:45:49 Pastel means take the color out, so there's not much color in there, not much for you to be able to tell the difference between pink, orange, and green. But if you have good color vision, you can still pretty much tell the difference. But for those like me, yeah, it's all shades of gray, and they all look way too similar. Um, pastels are not good.
1:46:11 Um, but it gets worse for most, uh, companies. And I've given this talk to, uh, uh, lots of vendors, a bit, given the talk to lots of conferences, to lots of TUGs.
1:46:22 Um, and so here is the Tableau color blind palette to fix this.
1:46:28 Uh, and yet, uh, when we look at it, if you're green color blind, it's not too bad. Um, but if you're me, that color blind palette, there are too many colors in that color blind palette that are too similar to other colors in that color blind palette. So if someone tells you, "Use the color blind palette, that will fix it," they're wrong.
1:46:50 Um, and it needs to be fixed. We need to do some things to make it work, even if you're gonna use the so-called color blind palettes.
1:47:00 Um, I see this one a lot. Here's don't use red and green.
1:47:04 Um, and I see the, these maps. Usually they're, they're, uh, election maps or something. Um, and they've got red and green there, uh, and here's what it looks like to me.
1:47:16 So again, there are the red states, Texas, Arizona, Oregon, Colorado, Florida, Carolina, Tennessee. And again, I can see them. They're not red to you, but they're red to me, and I can see that those are the red states, and I can see what the green states are. I've trained myself that that shade of gray is red, that shade of gray is green. Um, but they'll say, "Oh look, we'll fix it.
1:47:43 We'll use blue and, and orange or blue and, and brown, uh, in our color blind palette. That will make it better." Well, here's what it looks like to me.
1:47:53 Um, so the color blind palette in this example, which is widely used and on blogs all over the internet, here's the solution for color blindness. Um, you've made it worse. I would rather you did this because this is easier for me to see than this is.
1:48:11 Um, and here, if you want to see, here's one that I could see much better.
1:48:17 Um, red and black and blue is better for me to see, better for you to see, better for all of us to see by just changing the colors to make it so I can see them, everybody can see them. My favorite example, the NFL, when they went to Thursday nights, they decided to have colored jerseys. The whole jersey was one color, and infamously, the Jets were playing the Buffalo Bills one Thursday night in these Color Rush uniforms, and they were red and green and they said, "Oh my God, the people that are color blind can't see anything.
1:48:51 It's a mess to them." Um, no, we can see it. Um, they even made up a video of it to make it look like, oh, they're all the same. They're really not.
1:49:00 Um, if I have trouble seeing red, notice that the Buffalo is not red now, but I can still see that they're red, and that uniform for Buffalo is different than the green uniforms of the New York Jets. If I have trouble seeing blue, I could still see the red and the green pretty well. Blue is a color blindness. It's out there. Even for me, I could see the difference between the red of Buffalo and the green of New York.
1:49:29 This is how I've grown up. I'm used to being able to tell the difference, but I can also look at their helmets.
1:49:34 I can look at the stripes on the pants. I can look at the direction they're running on the field to tell the difference, which is good.
1:49:41 So using red and green is not all bad. Here we're seeing a green, we're trying to draw your attention to that top salesperson, and for red and green colorblind folks, it's okay.
1:49:53 Um, so many, many years ago, uh, when I gave this talk, I did it for website design, and most of it still applies to creating your charts and your data viz.
1:50:04 So don't just use colors, use some symbols. This happens to me all the time on the internet. I'm filling out a form, I hit it, it tells me there's an error. The error field is in red, the rest of them are in whatever other color it is, and I can't see the red. If they put the exclamation point there, then I would know, oh, that field is wrong. But they don't do that, they just change the color and I'm supposed to find the field where the color has changed in order to know that's where I need to correct my error.
1:50:35 Very frustrating. Um, it's a industry standard on the internet when you go to a page and they have web links, they're blue. Click on it, visit it, come back, they're purple. Well, guess what? For most of us who are colorblind, um, we don't see that you've added that red into the pur- into the blue as easily as other people can. And so the red and the purple look the same to me.
1:50:59 Industry internet standard limiting folks who have color blindness. We can do better.
1:51:06 Um, keep it minimal. Why do we need all of those colors? And I'll show you some examples of this, why, um, we don't need to use all those colors. Here's a- another good one for Tableau.
1:51:16 Um, instead of just using colors, give us, uh, some texture or, or, uh, uh, something to, to help us tell the difference between those colors. Tableau hasn't built it in yet, maybe 2027 we'll get. Um, there's hacks and you can do this and, and I've got some, some, uh, workbooks to show how you can put, uh, textures across your colors. Um, but we shouldn't have to.
1:51:43 It should be an option for us, a default in the tool to help everyone be able to see those different categories better. Um, we can play with the colors and hues and, and not use colors and hues that are too close together.
1:51:58 Um, so again, most experts say don't use red and green.
1:52:02 Well, red and brown is also problematic. As I told you, blue and purple is problematic. Green and blue is problematic, like green and yellow. There's lots of bad combinations. Red and green should be at the bottom of the list. It's really not that bad for most people who have color blindness. So don't rely on color alone.
1:52:23 Keep it to two or three colors. You don't need more than that. Use some textures, use some patterns, select some contrasts.
1:52:31 Um, try to, uh, uh, to do things, uh, a little bit different. Um, so here I want to show you some of these tools, and again, I will put these, uh, they're in the slides and I will put the link to the slides, uh, in the chat here in a second. Um, but here's one of my favorite tools. You load a image in and it will show you what it looks like to folks with different types of color blindness.
1:52:59 So which one is the red crayon? Or no, let's do blue today. Which one is the blue crayon? Can anybody tell which one is the blue crayon? Fix your eyes on which one you think is blue, and then I'll reveal it. There's the blue one.
1:53:17 Um, yes, I will, uh, uh, share the link to the Google Slides here momentarily.
1:53:24 Um, here's… Uh, oops, not that one. Go back. Um, here you could do a website. So you can put in a URL and it will show you what it looks like with the different types. So, um, I've done some stuff with, uh, with the home improvement stores, and one in particular loves to have orange all over their website and you've got to, uh, uh, uh, have orange everywhere.
1:53:48 Well, if I don't see red very well, your orange looks terrible to me.
1:53:53 Um, and so you're proud of your brand colors and you plaster them on here too much, and it doesn't look that good. So we can, uh, bring a URL, although Tableau Public URLs don't render very well here, so I wouldn't use that. It would be better to grab a screenshot and load it into this tool.
1:54:13 Um, so here, uh, Jim Dehner just wrote a really excellent blog on color choosing, uh, and, and working with colors. And so I grabbed one of his images of the United States, again, using that same color scheme that supposedly works for those of us who are color blind. And again, when I look at it, here's what I see.
1:54:36 Um, it's tough for me to see.
1:54:39 Um, Color Brewer is one that a lot of folks, uh, use, uh, to choose colors. But again, why do I need nine categories of data on the screen to try and see? Too many of these shades of green are too close together, even for those of you who aren't color blind.
1:55:00 Um, but limit yourself. Just show the three categories. I mean, what are you looking at?
1:55:06 What do you wanna know? Who are our top markets? Who are our bottom markets? Who's in the middle?
1:55:13 Um, who's our top 10%? Who's everybody else? Highlight the 10% and un-highlight with colors the other 90%.
1:55:22 Um, you really don't need nine or 10 shades of these diverging colors because again, those of us who are color blind are gonna have a hard time, so will everyone else. We've got to make it, uh, easier for folks, uh, to, to visualize and see these. Um, my last favorite tool to show people is from Adobe.
1:55:44 Um, and so Adobe, again, uses the red, green, and blue, uh, colors to show you what they look like. But again, too often people will just, "Oh, I'm gonna use these five colors here," and those five colors are, are way too hard for everyone, um, to see. So I tell people, "Use the triad," because that's how we see things. We see red, green, and blue.
1:56:09 So if we choose our colors red, green, and blue, that's gonna work pretty good for those of us who are color blind. And so you just, just choose one and go a third of the way around, a third of the way around, and you've done the best you can do to keep these colors so we can all see 'em really well.
1:56:31 Um, if you try and do more than three, it gets problematic.
1:56:35 So again, I could go to a custom and I can say, "Okay, these are gonna be problematic, so let me slide them over. And let me slide this one over, and let me slide this one over," changing the hue, changing the saturation so that these that are in the middle are different from the two that they're next to.
1:56:58 So no two have the same saturation, don't have the same hue.
1:57:02 Um, but I would never go more than six, ever. Never.
1:57:07 Because w- you try and go more than this, and even those of you who aren't color blind are gonna have trouble seeing the difference between those colors. It's, it's much, much better if we just stick to the three. And again, choose the three you like. Move it around, choose three.
1:57:23 These are our top, these are the bottom, these are the average. You don't need more than three. Most of the time you can get by with two, one to highlight, um, one that doesn't.
1:57:34 Um, so, uh, again, this is much more useful than trying to use the color wheel, um, to say y- yellow and blue is making green. No, yellow and, yellow and blue is not making green. Yellow is a light that comes from mixing green and red.
1:57:53 Um, and so again, that traffic light, picking yellow, green, and red was a bad choice to begin with, um, but we live with it and we, we train ourselves to see the difference. But why do that? Why, why force yourself to do that? Um, so Jim Dehner, um, one of my professors for the day, uh, comes into my class all the time virtually and gives lectures.
1:58:16 Um, Jim just wrote an excellent one on different types of palettes and choosing colors, um, and, and how you can choose the colors. And, and he's got a workbook out on Tableau Public, um, off of his website, that shows you how to do all of the things that I've talked about. Except I've, I've offered to Jim to do a guest blog and do an addendum and say, "Okay, uh, when you're showing all of these color…
1:58:47 That's just too many colors of pink." Even you are gonna have trouble seeing the different shades of that pink. We've, we've… Pink is a pastel. We've taken the color out to begin with and now we've taken color out at varying levels to try and show the difference, and it's too hard to see. Let's keep it, keep it simple. Keep it less colors. You wanna highlight the top 10%, highlight that, and Jim does go into that.
1:59:10 So this is one of the better ones that I've seen.
1:59:14 Uh, he talks about most of the topics that I talked about, um, but he's missing some of the nuances of, yeah, for those of us who are color blind, this one's not gonna work.
1:59:25 Um, so what's an alternative? And so I'm gonna do an addendum on Jim's blog, uh, to finally have one out there to give some good, meaningful advice with the tips that, uh, uh, that I'm giving you, um, today. So what, uh, questions do you have for me?
1:59:44 Let me grab, uh, um… Here's where you can gla- grab the slide deck. It should be available to everyone.
1:59:54 Um, here's where you can find, uh, Jim's blog post, which hopefully soon I will do an addendum.
2:00:04 And here's where you can grab a Tableau Public workbook and download it and play with it and try these things out.
2:00:15 But use the tools that I'm showing you. So create your dashboard, uh, and then, uh, grab a screen image of it, save it to a file, and throw it into this tool and see how it looks. And then change your colors. Tweak 'em, move 'em over. Change, change the, what you're, what you're looking at, um, and you will help not only me, but you will help everyone, uh, be able to see your data.
2:00:47 And then you can do the LODs and the map layers and everything else. But if you're choosing colors that are, that are too hard to see, too many of 'em to see, um, it's, it's frustrating me, but it's also frustrating you and you don't know it because you're not color blind, but, "Oh, I'm having trouble seeing these." Um, and there's good, sound reason why.
2:01:13 Um, early on in my career, uh, I was introduced to the KISS principle, keep it simple. Um, applies to colors. We don't need more than three colors. We just don't. There's just…
2:01:27 There's no use case for it. Keep it simple, folks. Make it easier, uh, for us to see. Questions, comments. What, what do y'all-
2:01:35 Annabelle Rincon: Yeah, we, we have some question for you.
2:01:38 Doc Kevin Lee Elder: Sure.
2:01:38 Annabelle Rincon: Uh, the first one is from Angela. "Hey, Doc. This is so informative and as we speak, I am making change in my dashboard and presentation.
2:01:48 How do you handle situation where a company's treatment p- Color or indicator of bad and good metrics are notoriously not accessible.
2:01:58 Doc Kevin Lee Elder: Yeah
2:01:59 Annabelle Rincon: Like a specific shade of red and green.
2:02:02 Doc Kevin Lee Elder: Yeah
2:02:02 Annabelle Rincon: Do you have advice for gently suggesting a more-… accessible palette to stakeholder who are emotionally attached to their brand and KPI colors?
2:02:11 Doc Kevin Lee Elder: Like, like my good friends at the Home Depot store.
2:02:15 Um, they wanna have their orange everywhere. Use it minimally with white and black and, and highlight things with the orange, and they'll be happy. They get their orange, but most of the screen is not orange.
2:02:27 Um, same thing with, with colors. I taught at Ohio University, and their colors were green and white, and they wanted everything green and white. Well, green on a white background is really hard to see. Flip it around and put white on a green background and it's easier. So same, same brand colors, but, but tweaking them. Um, they would also use two light of a green.
2:02:49 And I'd say, "Just darken that green to move it away from the white and you can use those two colors in combination." Change the hue, change the saturation, make it easier to see.
2:03:00 Um, again, I normally would get the question, "Well, what if I just… I have to have 10 categories?" Well, why? Why do they… Ask them why. "Oh, I wanna see the bottom 10%." Well, then show just the bottom 10%, and the other 90 can be in one color, not nine colors that we're not looking at. We just wanna see the top 10%. Um, you can turn around their requirements into something you can use with less colors, stronger, a darker color and a, and a lighter color to, to have that change in hue or saturation or contrast.
2:03:35 Um, almost no situation is, yeah, this has to be bad for people who are color blind and you just have to accept it. No, um, we can always get around it, find a way, um, around it.
2:03:51 Annabelle Rincon: Uh, yeah, I think that also like, um, one, uh, idea advice could be like to try to find a color blind, uh, on the top manager, something like that, and have him like as an excuse every time. That's what I used to do. "Oh, you know-"
2:04:07 Doc Kevin Lee Elder: Yeah
2:04:07 Annabelle Rincon: … "you have two member of the board of director that are color blind. Uh, so I am doing this kind of concept for them." And usually you, you, you stop-
2:04:16 Doc Kevin Lee Elder: Yeah
2:04:16 Annabelle Rincon: … you stop having like a pushback.
2:04:18 Doc Kevin Lee Elder: Yeah. With, with 200 folks looking at this, I, I guarantee you there were at least 50 folks that had trouble seeing some of those plates.
2:04:27 Um, and there are probably 50 folks who were never told that they had any color blindness.
2:04:32 Annabelle Rincon: Yeah, exactly.
2:04:33 Doc Kevin Lee Elder: Um, you get a large enough crowd. When I teach 30 students, I always get one per class, um, that never knew, um, was glad we did that. I got one more thing, one more thing.
2:04:43 What about… Oh, where am I? Come on. Come on. Come on. What about that dress? Remember that dress?
2:04:50 Annabelle Rincon: Ah, yes, that's true.
2:04:51 Doc Kevin Lee Elder: It went all over the internet. People said it was black and blue. Other people said it was white and gold. Oh, Doc, how can this be? Oh, I know exactly what happened here, folks. It had to do with the color around it.
2:05:05 If it was very dark when you saw this dress, and around it on your screen was dark, you saw it as blue and black.
2:05:16 If it was very light out and you had lots of light colors around it, you saw it as white and gold. Because again, the dress is here in the middle.
2:05:26 People saw it as blue and black on that end. They saw it as white and gold on the other end when it was actually in the middle, not really either one of those. But your brain is really an interesting thing. We could do a whole, a whole TUG just on your brain because once you see it, it's very hard for you to unsee it.
2:05:48 And so once you saw it as blue and black, no matter what I show you to try and tell you it's not blue and black, even if I put the one up that's white and gold, you're still gonna see it as blue and black 'cause your brain linked it and said, "Nope, that's blue and black," or saw it as white and gold. People had tons of arguments over this. It was fun to watch it on the internet, and I've, I've been using it ever since then because, yeah, it's, it's…
2:06:13 it has to do with color blindness. It has to do with your cones and rods, and whether you're seeing those colors correctly with light on them or dark.
2:06:23 Light hue, dark hue makes you see things different.
2:06:27 Um, so it's really fun. I, I love these, these kind of, uh, examples. So again, find me on Twitter, find me on LinkedIn. Send me an email.
2:06:37 Um, the slide deck is out there. Um, I love to come into organizations. I've gone into a lot of organizations and done this talk.
2:06:45 Um, and it's been fun. Um, and I bring in professors for the day to come into my students and teach them other stuff as well besides color blindness or color vision deficiency, as I should be calling it now to, to take that stigma of blindness off of there.
2:07:02 Um, but I appreciate everybody staying all the way through and over time.
2:07:06 Um, and, um, if you've got questions, wanna play things, and like I said, check out, uh, Jim's, uh, uh, Jim's blog. It's one of the better ones out there that I've seen. Lots of the stuff in a lot of these blogs are incorrect and drive me crazy. Jim's didn't drive me crazy. I just wanted to add, "And one more thing, Jim, and one more thing." And so I told Jim, "We'll do that," um, because, uh, it's been on my bucket list for a long time.
2:07:37 Annabelle Rincon: Thank you very much, Doc.
2:07:39 That was very, very useful.
2:07:42 And I will let, uh, Prasann conclude this, uh, great session.
2:07:46 Doc Kevin Lee Elder: Let me, uh, stop sharing.
2:07:48 Prasann Prem: Yeah.
2:07:48 Doc Kevin Lee Elder: There we go.
2:07:50 Prasann Prem: Okay, great. So thank you so much again, Doc, and, uh, everyone, everyone for joining, having all those conversations. I can see the chat buzzing, uh, all around with so much interaction, so much con- conversation, and that's great actually. Like, uh, I've seen, uh, many, uh, different events, but I can always see, uh, AnalyticsTUG being so lovely, and woo-hoo for that.
2:08:17 So thank you so much, everyone, and do join us next month for another session, another great AnalyticsTUG session.
2:08:30 We, we already have great speakers out there. And, uh, we'll also, uh, share the links with all the p- uh, presentations and everything. And do let us know, uh, if you need anything else as well.
2:08:45 So, uh, thank you so much. Have a great day.
2:08:48 Good night wherever you're dialing in, and see you next month.
2:08:53 Bye bye.
2:08:54 Annabelle Rincon: Thank you. Bye bye.
2:08:55 Doc Kevin Lee Elder: Thanks, everybody.