Conditional Format Tables in Tableau (Like Excel!) - Tableau Tutorial P.5

Luke Barousse · Beginner ·📊 Data Analytics & Business Intelligence ·5y ago

Key Takeaways

This video tutorial covers conditional formatting tables in Tableau, similar to Excel, using the sum of sales as an example. The instructor demonstrates how to create a new worksheet, add fields to rows and columns, and apply conditional formatting using colors and bar charts.

Full Transcript

what up data nerds in this quick tutorial we're going to be going through how to conditionally format tables so similar to what you can do in excel with formatting values based on the value in the column we're going to do the same thing here in tableau thing with tableau it makes it a little bit more difficult with the functionality that it has but it's nothing that we can't actually accomplish so let's jump in so just to show what we're going to be accomplishing in this quick tutorial is we're going to be looking at the different sales representatives and based on their category what is the cumulative or sum of the amount of sale sales that they have with this we want to format it based on the value in the table itself so the higher it is we want a green color and the lower it is we want a red color so let's start we begin by starting with a new worksheet and i'm going to go ahead and going to take the two interest points that we want so the first one being the names of those sales representatives i'm going to throw that into the rows column and then also we want to look at this from a categories perspective so we're going to take the category itself and throw it into the columns then from here you can see that we have no values in here we can throw whatever we want in here but for our sake we're going to throw in sales so we take sales here and we can either throw it into right here into the table itself or you can throw it right here into the text column and it will do the same thing from there what we're getting is a sum of all the different sales inside of the table itself if you want to change the aggregation method measure you just right click it and change it now let's do the coloring so we're going to want to color it based on the sum of sales so we're going to take sales again and take it and drag it over onto colors and you can see it started to color it where the higher numbers have a darker color not fully what we want just yet but we can play with this so first let's get it to the color format that we want you can click on colors and click edit colors and this is the automatic palette i don't really want this one i'm gonna do this drop down right here and i'm gonna select red green divergent and yes i want it from the lowest around 10k to the highest 1 million and you could do also some other adjustments in here okay so it's adjusted for the color that i want now this is the hardest point that everybody gets stuck on all you need to do is is we need to basically form this into a bar chart and how we're going to do that is we want a bar chart of just one value for each one of these columns so the easiest way to do that is either select the names data point or the category data point so let's start with the we'll just do the names data point so we'll take names and we're going to throw it into size okay and we're going to also like i said we need this to be a bar so we're going to throw this into bar now it's going to throw this error because we're not aggregating it and we need to aggregate it to actually make it into bar so what you need to do is change it into count distinct all right and now this is getting closer to what we want we still need to we won't want these gaps in here and also it's a little bit hard to read so we're going to change it and change it uh the size of the bar so that way it fills up the whole entire graph and bam we have it conditionally formatted now if that was a little confusing let's just recap real quick using the category to also show how it can be done so i'm going to remove the names from here and i'm going to change this back to what we were at previously we were at automatic so this is what we were at previously so similar you could do names or i could once again i could grab the category take the category i throw it into size and then from there i need to change it to bar and it's going to throw the error once again and i change the measure to count distinct because there's only going to be one per name bam and then it's there so that wraps up how you conditionally format a table in tableau hope this is useful specifically for those coming from excel like me this was super complicated to try to figure out i feel like this is a very easy solution to implement for your future tables as a quick shout out this video is part of a series where we go from importing data from google sheets all the way to getting it into a live updated dashboard in tableau public and as you can see from the dashboard this dashboard we build it to track the employee performance of those in the superstore data set if that project seems interesting please consider subscribing also if you found this video useful please like the video also comment down below on things that you struggle with tableau that you'd like to know more about i'd like to guide this tutorial series more to fit the need of the audience thanks for your time and hope to see you again

Original Description

Tableau Fundamentals (DataCamp) 👉🏼 https://lukeb.co/TableauDataCamp (My recommended course that I took to learn Tableau!) Part 5 of this tutorial covers a common question with visuals: How to conditional format tables, like you used to do all the time in Excel? 00:00 Intro 00:53 Conditional Formatting in Tableau 03:52 Conditional Formatting Alternate Way 04:26 Conclusion My Tableau tutorial playlist 👉🏼 https://www.youtube.com/playlist?list=PL_CkpxkuPiT_sRLeU_5JSArjc0P1lGU2_ Link for Google Sheets - Tableau Superstore Data Set 👉🏼 https://docs.google.com/spreadsheets/d/1rAZkrxrtO1LQd7Lw61jXta0A7Bj5lFtn3LPRzcVxqhI/edit?usp=sharing Link for Tableau Superstore Dashboard 👉🏼 https://public.tableau.com/profile/luke.barousse#!/vizhome/SuperstoreSalesRepReport/Dashboard?publish=yes Recommended Certificates/Courses (Affiliate Links) ================================== DataCamp: Python 👉🏼 https://lukeb.co/PythonBasicsDataCamp Power BI 👉🏼 https://lukeb.co/PowerBIDataCamp Tableau 👉🏼 https://lukeb.co/TableauDataCamp R 👉🏼 https://lukeb.co/RDataCamp Data Analyst w/ Python 👉🏼 https://lukeb.co/PythonAnalystDataCamp DataCamp Subscription (Monthly $25USD) 👉🏼 https://lukeb.co/DataCampSub Coursera: Google Data Analytics Certificate (BEGINNERS START HERE) 👉🏼 https://lukeb.co/GoogleCert Python for Everybody 👉🏼 https://lukeb.co/PythonForEverybody SQL 👉🏼 https://lukeb.co/PostgresSQLUofM Coursera Plus Subscription (Monthly $59USD) 👉🏼 https://lukeb.co/CourseraMonthly Coursera Plus Subscription (Annual $399USD) 👉🏼 https://lukeb.co/CourseraYearly My Tech for Data Science (Includes Amazon Affiliate Links) ================================== 💻 Dell New XPS 13 (PC of choice) 👉🏼 https://geni.us/DellNewXPS13 💻 Dell New XPS 15 👉🏼 https://geni.us/DellNewXPS15 👨🏼‍💻 M1 Macbook Air 8GB (Mac of choice) 👉🏼 https://geni.us/M1macAir8GB 👨🏼‍💻 M1 Macbook Pro 8GB 👉🏼 https://geni.us/M1macPro8GB 🔌 Must-have Mac dock 👉🏼 https://geni.us/CalDigitTS3 🖥 M1 M
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Luke Barousse · Luke Barousse · 5 of 60

1 Connect Google Sheets to Tableau & Joining Data - Tableau Tutorial P.1
Connect Google Sheets to Tableau & Joining Data - Tableau Tutorial P.1
Luke Barousse
2 How To Use Tableau Desktop Controls - Tableau Tutorial P.2
How To Use Tableau Desktop Controls - Tableau Tutorial P.2
Luke Barousse
3 Dimensions Vs Measures  (Blue Vs Green Data) - Tableau Tutorial P.3
Dimensions Vs Measures (Blue Vs Green Data) - Tableau Tutorial P.3
Luke Barousse
4 Create Stacked Bar Chart (and any other visuals EASILY!) w/ Show Me! - Tableau Tutorial P.4
Create Stacked Bar Chart (and any other visuals EASILY!) w/ Show Me! - Tableau Tutorial P.4
Luke Barousse
Conditional Format Tables in Tableau (Like Excel!) - Tableau Tutorial P.5
Conditional Format Tables in Tableau (Like Excel!) - Tableau Tutorial P.5
Luke Barousse
6 Calculated Fields in Tableau (Formulas & IF Statements) - Tableau Tutorial P.6
Calculated Fields in Tableau (Formulas & IF Statements) - Tableau Tutorial P.6
Luke Barousse
7 Parameters (Create & Use in Calculated Fields and/or Visuals) - Tableau Tutorial P.7
Parameters (Create & Use in Calculated Fields and/or Visuals) - Tableau Tutorial P.7
Luke Barousse
8 Totals, Average Lines, & Trend Lines (Analytics Pane) - Tableau Tutorial P.8
Totals, Average Lines, & Trend Lines (Analytics Pane) - Tableau Tutorial P.8
Luke Barousse
9 How To Create a Dashboard - Tableau Tutorial P.9
How To Create a Dashboard - Tableau Tutorial P.9
Luke Barousse
10 Upload your dashboard to Tableau Public  - Tableau Tutorial P.10
Upload your dashboard to Tableau Public - Tableau Tutorial P.10
Luke Barousse
11 Install Python for Data Science on Mac & Windows (PC) with Anaconda - P.1
Install Python for Data Science on Mac & Windows (PC) with Anaconda - P.1
Luke Barousse
12 How to run Python for Data Science - Editors vs IDEs - P.2
How to run Python for Data Science - Editors vs IDEs - P.2
Luke Barousse
13 Install VS Code with Python for Data Science / Data Analysis - P.3
Install VS Code with Python for Data Science / Data Analysis - P.3
Luke Barousse
14 Understanding Virtual Environments for Data Science / Data Analysis - P.4
Understanding Virtual Environments for Data Science / Data Analysis - P.4
Luke Barousse
15 Using VS Code with Python for Data Science / Data Analysis - P.5
Using VS Code with Python for Data Science / Data Analysis - P.5
Luke Barousse
16 Python for Data Science / Analysis  ft. 'The Office' Dataset - P.0
Python for Data Science / Analysis ft. 'The Office' Dataset - P.0
Luke Barousse
17 Python Objects frequently used in Data Science / Data Analysis - P.1
Python Objects frequently used in Data Science / Data Analysis - P.1
Luke Barousse
18 Python If Statements for Data Science / Data Analysis - P.2
Python If Statements for Data Science / Data Analysis - P.2
Luke Barousse
19 Python For & While Loops for Data Science / Data Analysis - P.3
Python For & While Loops for Data Science / Data Analysis - P.3
Luke Barousse
20 Python List Comprehension for Data Science / Data Analysis - P.4
Python List Comprehension for Data Science / Data Analysis - P.4
Luke Barousse
21 Python Functions for Data Science / Data Analysis - P.5
Python Functions for Data Science / Data Analysis - P.5
Luke Barousse
22 Lambda Functions for Data Science / Data Analysis - Python P.6
Lambda Functions for Data Science / Data Analysis - Python P.6
Luke Barousse
23 How NOT to learn Python for Data Science
How NOT to learn Python for Data Science
Luke Barousse
24 What is Business Intelligence (BI)? 📊😅
What is Business Intelligence (BI)? 📊😅
Luke Barousse
25 Top 3️⃣ Technical Skills for Business Intelligence 📚📊
Top 3️⃣ Technical Skills for Business Intelligence 📚📊
Luke Barousse
26 Top Non-technical Skills for Business Intelligence 📊👨🏼‍💻
Top Non-technical Skills for Business Intelligence 📊👨🏼‍💻
Luke Barousse
27 M1 vs Intel Mac for Data Science
M1 vs Intel Mac for Data Science
Luke Barousse
28 M1 vs Intel Mac for Excel 📈👨🏼‍💻
M1 vs Intel Mac for Excel 📈👨🏼‍💻
Luke Barousse
29 M1 vs Intel Mac for Python 🐍👨🏼‍💻
M1 vs Intel Mac for Python 🐍👨🏼‍💻
Luke Barousse
30 M1 vs Intel Mac for Business Intelligence Tools 💻📊
M1 vs Intel Mac for Business Intelligence Tools 💻📊
Luke Barousse
31 M1 Macbook Air vs Pro (8 vs 16 GB) for Data Science
M1 Macbook Air vs Pro (8 vs 16 GB) for Data Science
Luke Barousse
32 Python for M1 Mac vs Intel (SPOILER: M1 is 2x faster)
Python for M1 Mac vs Intel (SPOILER: M1 is 2x faster)
Luke Barousse
33 Data Analyst's WFH Setup & Upgrades
Data Analyst's WFH Setup & Upgrades
Luke Barousse
34 Windows on the M1 Mac - What are your options?
Windows on the M1 Mac - What are your options?
Luke Barousse
35 Install your favorite Windows app on M1 Mac - ft. Parallels
Install your favorite Windows app on M1 Mac - ft. Parallels
Luke Barousse
36 Data Science shortcuts for Mac
Data Science shortcuts for Mac
Luke Barousse
37 Day in the life of a data analyst
Day in the life of a data analyst
Luke Barousse
38 Power BI vs Tableau - Best BI Tool
Power BI vs Tableau - Best BI Tool
Luke Barousse
39 Mac Vs PC - BEST for Data Science
Mac Vs PC - BEST for Data Science
Luke Barousse
40 Data Scientist vs Data Analyst (funny!)
Data Scientist vs Data Analyst (funny!)
Luke Barousse
41 Become a DATA ANALYST with NO degree?!? The Google Data Analytics Professional Certificate
Become a DATA ANALYST with NO degree?!? The Google Data Analytics Professional Certificate
Luke Barousse
42 Certificates vs Degree for Data Analysts (ft. Google Data Analytics Professional Certificate)
Certificates vs Degree for Data Analysts (ft. Google Data Analytics Professional Certificate)
Luke Barousse
43 Google vs IBM Data Analyst Certificate - BEST Certificate for Data Analysts
Google vs IBM Data Analyst Certificate - BEST Certificate for Data Analysts
Luke Barousse
44 Python Vs R (funny!)
Python Vs R (funny!)
Luke Barousse
45 THIS got me my job as a Data Analyst - My portfolio tip
THIS got me my job as a Data Analyst - My portfolio tip
Luke Barousse
46 I used Python to Count my Bike Jumps!
I used Python to Count my Bike Jumps!
Luke Barousse
47 Standout as a Data Analyst with THIS TOOL
Standout as a Data Analyst with THIS TOOL
Luke Barousse
48 STOP using Spreadsheets for Everything!
STOP using Spreadsheets for Everything!
Luke Barousse
49 Transition into Data Science - My Tips & Story
Transition into Data Science - My Tips & Story
Luke Barousse
50 Get a JOB w/ Google Data Analytics Certificate?!? (ft. Certificate Holders)
Get a JOB w/ Google Data Analytics Certificate?!? (ft. Certificate Holders)
Luke Barousse
51 Staying Motivated in Data Science
Staying Motivated in Data Science
Luke Barousse
52 Data Science - Expectation vs Reality (funny!) - ft. @KenJee_ds
Data Science - Expectation vs Reality (funny!) - ft. @KenJee_ds
Luke Barousse
53 Get NOTICED in Data Science!!! (3 types of GREAT projects)
Get NOTICED in Data Science!!! (3 types of GREAT projects)
Luke Barousse
54 Use THIS to showcase EXPERIENCE in Data Science
Use THIS to showcase EXPERIENCE in Data Science
Luke Barousse
55 How to show EXPERIENCE... when you have NONE?!?
How to show EXPERIENCE... when you have NONE?!?
Luke Barousse
56 Learn PYTHON to be a DATA ANALYST?!? (or is R enough...)
Learn PYTHON to be a DATA ANALYST?!? (or is R enough...)
Luke Barousse
57 The BIGGEST MISTAKE when starting a data project!
The BIGGEST MISTAKE when starting a data project!
Luke Barousse
58 Top Jobs in Data Science
Top Jobs in Data Science
Luke Barousse
59 How to get Data Analytics side jobs - NEW LinkedIn Feature
How to get Data Analytics side jobs - NEW LinkedIn Feature
Luke Barousse
60 Building a bot to scrape job data… How NOT to collect data
Building a bot to scrape job data… How NOT to collect data
Luke Barousse

This video tutorial teaches how to conditionally format tables in Tableau using the sum of sales as an example. The instructor demonstrates how to create a new worksheet, add fields to rows and columns, and apply conditional formatting using colors and bar charts.

Key Takeaways
  1. Create a new worksheet in Tableau
  2. Add fields to rows and columns
  3. Apply conditional formatting using colors
  4. Create a bar chart to display the data
  5. Adjust the size of the bar chart to fill the entire graph
💡 To conditionally format a table in Tableau, you need to create a bar chart and adjust the size of the bars to fill the entire graph.

Related Reads

Chapters (4)

Intro
0:53 Conditional Formatting in Tableau
3:52 Conditional Formatting Alternate Way
4:26 Conclusion
Up next
Salesforce Tableau CRM & Einstein Discovery Consultant Exam: Full Syllabus Breakdown (New 2025 Bluep
Emily Unfiltered
Watch →