Lab Manual DVT
Lab Manual DVT
Submitted By:
Aryan Shangloo (2023268220)
Programme: MBA
Specialization: Business Analytics
SEMESTER: 3rd
Academic Year: 2023-2025
Submitted To:
Mr. Shashank Bhardwaj
Asst. Professor
Page 1 of 49
TABLE OF CONTENT
Page 2 of 49
1. GETTING STARTED WITH TABLEAU
• Multiple sheets: Drag sheets > canvas > choose relationship type (Left, Right, Inner Join)
Page 3 of 49
1.3 Importing Data into Tableau
Tableau automatically assigns data types, indicated by icons:
Page 4 of 49
2. SHELVES AND MARKS CARD
Columns
A horizontal shelf at the top that determines the vertical layout of your visualization and typically creates
the x-axis.
Rows
A vertical shelf on the left that determines the horizontal layout of your visualization and typically creates
the y-axis.
Filters
Located in the top-right, filters refine the data shown in your
visualization by including or excluding specific values.
Page 5 of 49
2.2 Marks Card
Marks card is the central control panel for visual properties of your data points, located underneath the
filters panel.
Page 6 of 49
3. CHARTS
• Text Table
• Heat Map
• Highlighted Table
• Symbol Map
• Filled Map
• Pie Chart
• Horizontal/Vertical Bar Charts
• Stacked Bar Chart
• Tree Map
• Line Charts
• Bar Charts
• Area Charts
• Scatter Plot
• Histogram
• Box and Whisker Plot
• Gantt Chart
• Bullet Graph
• Packed Bubble
Page 7 of 49
3.3 Bar Chart
3.3.1 Vertical Bar Chart
Required conditions:
• At least one dimension (categorical data)
• At least one measure (numerical data)
• Dimension on Columns
• Measure on Rows
Steps:
1. Data preparation:
• Dimension > Columns
• Measure > Rows
• Ensure measure is aggregated (SUM,
AVG, etc.)
2. Chart creation:
• Marks card > Bar
• Bars will display vertically from bottom
to top
3. Optional enhancements:
• Sort: Click sort button on toolbar OR right-click axis > Sort
• Color: Dimension/Measure > Color
• Labels: Measure > Label
• Tooltip: Fields > Tooltip
Page 8 of 49
Steps:
1. Data preparation: 3. Optional enhancements:
• Dimension > Rows • Sort: Click sort button on
• Measure > Columns toolbar OR right-click axis >
• Ensure measure is aggregated (SUM, Sort
AVG, etc.) • Color: Dimension/Measure >
2. Chart creation: Color
• Marks card > Bar • Labels: Measure > Label
• Bars will display horizontally from • Tooltip: Fields > Tooltip
left to right
Required Conditions:
• At least one date/continuous field (typically on Columns)
• At least one measure (typically on Rows)
• Optional dimension for multiple series (Color shelf)
Page 9 of 49
Steps to Create Basic Area Chart
1. Initial Setup:
• Date field > Columns
• Measure > Rows
• Change mark type to Area
2. Configuration:
• Marks card > Area
• Adjust colors: Color button in Marks card
• Add labels if needed: Label shelf
A bubble chart is a variation of a scatter plot that displays three dimensions of data simultaneously, where
each data point is represented by a circle (bubble) whose position on the x and y axes shows two variables,
while the size of the bubble represents a third variable.
Required Conditions
• At least 1 dimension field
• 1-2 measure fields
• Data that shows relationships between variables
Page 10 of
49
Steps to Create Basic Bubble Chart
1. Initial Setup:
• Dimension field > Columns
• First measure > Rows
• Second measure > Size (in Marks card)
2. Select bubble chart from the list of charts in ‘show me’ option
Or select the Bubble chart from ‘Show me’ tab on the top right of the worksheet.
A funnel chart is a visualization that shows the progressive reduction of data as it passes through different
stages of a process, resembling a funnel shape with the highest value at the top and lowest at the bottom. It's
particularly useful for visualizing sales processes, conversion rates, and workflow stages where there's a
natural narrowing of values.
Required Conditions
• Sequential stages (minimum 3 stages)5
• Decreasing values through stages
• One dimension field (stages)
• One measure field (values)
Required Conditions
• One dimension field (any categorical data)
• At least one measure field (for size/color)
• Clean, consistent data values
A scatter plot is a visualization that displays the relationship between two numerical variables by plotting data
points using Cartesian coordinates, where each point's position represents values for two different variables
(x and y axes).
Page 10 of 49
Required Conditions
• Minimum two measure fields (numerical)
• Optional dimension field for:
• Color coding points
• Creating multiple plots
• Adding labels
Page 11 of 49
3.9 World Map
A map visualization displays geographical data on an interactive map, allowing users to analyze spatial
patterns, regional comparisons, and geographical distributions of data.
Required Conditions
• Geographic fields (any of these):
• Latitude/Longitude coordinates
• Country/State/City names
• Postal codes
• Custom geographic roles
• At least one measure field for analysis
Page 12 of 49
4. CALCULATED FIELDS
Calculated fields are user-defined fields that allow you to create new data from existing data in your data
source. They essentially create a new column that performs calculations or transformations on existing fields
while leaving the original data unchanged.
Page 13 of 49
Tableau offers three main types of calculations:
1. Basic Expressions - Transforms values at data source level or visualization level
2. Level of Detail (LOD) Expressions - Provides control over granularity of computation
3. Table Calculations - Performs calculations across table dimensions
To ensure accuracy:
• Verify calculations by comparing raw ingredients
• Check aggregation levels carefully
• Test results against manual calculations
• Review number formatting
• Validate syntax and logic
When working with calculated fields in Tableau, several helpful features streamline the creation and editing
process. The calculation editor offers a convenient drag-and-drop functionality, allowing you to easily
incorporate fields directly into your formulas without typing field names manually. As you type formulas,the
auto-complete feature suggests relevant functions and field names, significantly reducing syntax errorsand
speeding up the development process. For quick access to Tableau's extensive function library, simplyclick
the triangle icon in the calculation editor to browse and learn about available functions. To improve readability
while working on complex calculations, you can adjust the text size using CTRL+ to zoom in and CTRL- to
zoom out. Additionally, Tableau provides robust formatting options for numbers and dates, enabling you to
customize how your calculated values appear in visualizations and ensure consistency across your workbook.
Page 14 of 49
5. DASHBOARDS
Begin by configuring your dashboard's basic settings. Select Size from theDashboard
pane and choose either:
1. Fixed size (specific dimensions)
2. Automatic (adjusts to screen size)
3. Range (minimum and maximum dimensions)
4. Custom (exact pixel specifications)
Adding Content
Page 15 of 49
5.2 Key Components and Design
Dashboards utilize various layout elements including containers, text boxes, images, and web pages to
organize content effectively. You can choose between tiled or floating layouts, implement device-specific
designs, and customize backgrounds and colors. Interactive elements like filter cards and legends help users
navigate and interpret the data meaningfully.
Best Practices
When designing dashboards, start with a clear purpose and target audience in mind. The most crucial
information should be positioned in the top-left quadrant, following natural reading patterns. Maintain
consistent formatting across visualizations and use appropriate color schemes that enhance readability.
While it's tempting to include numerous visualizations, limiting their number prevents overcrowding and
improves user experience.
Page 16 of 49
5.5 Story
A Story in Tableau is a sequence of visualizations that work together to convey information and insights.
Unlike dashboards that show everything at once, stories guide viewers through data points, insights, and
analysis in a structured narrative format. Each story point acts as a snapshot of your data, creating a compelling
narrative that helps audiences understand complex information
progressively.
Method 1: Using the Bottom Tab 1.1.1.2 Method 2: Using the Menu
1. Locate the tab bar at the bottom of your 1. Click on "Story" in the top menu bar
Tableau workspace
2. Find the "New Story" icon (looks like a 2. Select "New Story" from the dropdown
page with a plus sign) menu
3. Click on this icon to create a new story
3. Your new story canvas will appear
Page 17 of 49
Lab Manual DVT
7. ASSIGNMENT
The dataset contains detailed information about 5,043 movies with 36 different attributes. Each
movie entryincludes production details like color format, director name, duration, and budget. The
data tracks social media metrics through Facebook likes for directors, actors, and movies
themselves. Performance indicatorsare captured via IMDB scores, gross revenue, number of critic
reviews, and user votes. Cast information includes names of three main actors and their social
media presence.
Content descriptors encompass genres (up to 7 categories per film), plot keywords, content ratings,
and language. Technical aspects like aspect ratio and movie duration are also recorded. The dataset
covers films from multiple countries, though predominantly English-language productions, and
spans various release years with both critical and commercial performance metrics.
8
Lab Manual DVT
Steps:
1. Drag Movie Title to the Rows shelf.
2. Drag Number of Votes to the Columns shelf.
3. Use a Bar Chart from the Show Me menu.
4. Sort in descending order and filter for the top 10 movies.
Q2 Visualize the Genres of the movies
9
Lab Manual DVT
Steps:
1. Drag Genre to the Rows shelf.
2. Drag Number of Movies (or count of Genre) to the Columns shelf.
3. Use a Bar Chart or Pie Chart to represent the data.
Steps:
1. Drag Year to the Columns shelf.
2. Drag Number of Movies (or count of Movie Titles) to the Rows shelf.
3. Use a Line Chart from the Show Me menu.
10
Lab Manual DVT
Steps:
11
Lab Manual DVT
Steps:
1. Drag Year to the Columns shelf.
2. Drag Total Gross to the Rows shelf.
3. Use a Line Chart or Bar Chart to display the trends.
Steps:
1. Drag Genre to the Rows shelf.
2. Drag Average Metascore to the Columns shelf.
3. Filter the genres to display the top 10 by metascore.
4. Use a Bar Chart or Scatter Plot for visualization.
12
Lab Manual DVT
Steps:
1. Drag Certificate to the Rows shelf.
2. Drag Number of Movies (or count of Movie Titles) to the Columns shelf.
3. Use a Bar Chart from the Show Me menu.
Q8 Construct a dashboard showing top-rated movies, genres, actors, and ratings trends
using IMDB data.
13
Lab Manual DVT
Steps:
1. Combine visualizations for:
• Top-rated movies
• Genres
• Actors
• Ratings trends
2. Drag each chart to the dashboard.
3. Add interactive filters for Genre, Year, and Rating.
4. Ensure tooltips and labels are appropriately set for better interactivity.
Q1 Show the CO2 emissions (CO2 (kt)) for each country in Maps.
14
Lab Manual DVT
Steps:
1. Load the World Bank CO2 dataset in Tableau.
2. Drag Country Name to the Detail Marks Card.
3. Drag CO2 (kt) to the Color Marks Card.
4. Change the Marks type to Map.
5. Adjust the color scheme for better visualization (e.g., use a gradient that highlights
high emissions in darker shades).
6. Add a Tooltip to display the country name and CO2 values interactively.
Q2 Visualize CO2(per capita) against country names so that we can easily identify the
Biggest polluter (in per capita terms)
Steps:
1. Drag Country Name to the Rows shelf.
2. Drag CO2 Per Capita (metric tons) to the Columns shelf.
3. Select a Bar Chart from the Show Me menu.
4. Sort the bar chart in descending order to identify the biggest polluter.
5. Add a Label Marks Card to display the exact CO2 per capita values for each country.
Q3 Show the evolution of CO2 emissions over time
15
Lab Manual DVT
1. Steps:
2. Drag Year to the Columns shelf.
3. Drag CO2 (kt) to the Rows shelf.
4. Use a Line Chart from the Show Me menu.
5. Add a Tooltip Marks Card to display year-by-year CO2 emissions.
Q4 Show me the evolution of CO2 emissions over time in different regions.
Steps:
1. Drag Year to the Columns shelf.
2. Drag CO2 (kt) to the Rows shelf.
3. Drag Region to the Color Marks Card.
4. Use a Line Chart from the Show Me menu.
5. Add a Filter for regions to make it interactive.
16
Lab Manual DVT
Steps:
1. Load the Crime Rate in India dataset in Tableau.
2. Drag State to the Detail Marks Card.
3. Drag Population to the Color Marks Card.
4. Change the Marks type to Map.
5. Adjust the color gradient to highlight states by population size.
17
Lab Manual DVT
Steps:
1. Drag City Name to the Detail Marks Card.
2. Drag Crime Rate to the Color Marks Card.
3. Change the Marks type to Map.
4. Use tooltips to display crime rate details for each city interactively.
Steps:
1. Drag State to the Detail Marks Card.
2. Drag Crime Rate to the Color Marks Card.
3. Change the Marks type to Map.
4. Use a diverging color palette to highlight states with high crime rates.
Q4 Visualize a World Map for states according to Crime rate
18
Lab Manual DVT
Steps:
1. Combine state data with latitude and longitude coordinates.
2. Drag State to the Detail Marks Card.
3. Drag Crime Rate to the Color Marks Card.
4. Change the Marks type to Map.
5. Add labels and tooltips to show state and crime details.
Steps:
1. Drag State to the Detail Marks Card.
2. Drag Population to the Color Marks Card.
3. Change the Marks type to Map.
4. Create a Filter for the population range.
5. Use an interactive slider to allow filtering by population size.
19
Lab Manual DVT
Hierarchies in Tableau provide a structured way to organize and analyze data at different levels of
granularity. Here we took country, state, and city, in hierarchies which enable intuitive.
20
Lab Manual DVT
Dashboard
21
Lab Manual DVT
1. Data Preparation:
2. Connecting to Tableau:
• Import the cleaned dataset into Tableau by connecting to your data source
(Excel, CSV, or database).
o Pie Charts:
22
Lab Manual DVT
• Create pie charts for company sizes and employment types to display
their respective distributions.
o Map Visualization:
• Open a new dashboard and drag the prepared sheets into the workspace.
• Add dropdown filters for "Company Location" and "Job Title" to allow users
to filter the visualizations dynamically.
• Use consistent colors, formatting, and alignment for a professional look.
• Enable tooltips for each chart to provide detailed insights when hovering over
elements.
• Set filters to ensure interactivity between different sheets.
6. Final Touches:
23
Lab Manual DVT
24