Module 9: Advanced Tableau Skills
Module 9: Advanced Tableau Skills
Introduction
Welcome to Module 9!
You have already learned how to connect data, create charts, perform calculations, build dashboards and share reports using Tableau.
Now it is time to explore some more powerful Tableau features.
Imagine that a supermarket in Ibadan wants to understand its sales better. The manager wants to know which products are performing well, which products are losing popularity and how sales change over time.
Advanced Tableau features can help answer these questions.
In this module, you will learn about groups, sets, parameters, trend lines, forecasting and more advanced ways of exploring data.
1. Understanding Groups in Tableau
A group allows you to combine different values into one category.
Imagine a supermarket sells these products:
- Rice
- Beans
- Spaghetti
- Bread
- Cake
- Milk
- Yoghurt
You can create groups to organise these products into larger categories.
| Product |
Group |
| Rice |
Food |
| Beans |
Food |
| Spaghetti |
Food |
| Bread |
Bakery |
| Cake |
Bakery |
| Milk |
Dairy |
| Yoghurt |
Dairy |
How to Create a Group
- Open a worksheet in Tableau.
- Find the field containing the values you want to group.
- Select the values you want to combine in the view or data pane.
- Right-click the selected values.
- Choose Group.
- Give the new group a suitable name.
- Use the group in your chart.
Groups help you organise related information and make charts easier to understand.
2. Understanding Sets in Tableau
A set is a collection of data values that you select based on certain conditions.
For example, imagine a supermarket wants to identify its five best-selling products.
You can create a set containing the top five products based on sales.
What Can Sets Help You Do?
- Identify the best-performing products.
- Compare selected students with other students.
- Separate high sales from low sales.
- Analyse selected regions or categories.
How to Create a Set
- Find a dimension such as Product in the Data pane.
- Right-click the field.
- Select Create and then Set.
- Choose the values you want to include, or use the Top tab to select a top number based on a measure.
- Give the set a name.
- Click OK.
- Use the set in your worksheet.
Example
A school wants to identify students who scored 80 marks or above.
You can create a set based on examination scores to identify students who meet that condition.
3. Understanding Parameters in Tableau
A parameter is a value that users can change to control part of a calculation, filter or visualisation.
Think of a parameter as a control button that allows you to change how you explore your data.
Example: Choosing a Sales Target
Imagine a supermarket wants to compare its sales against different targets.
The manager may want to test these targets:
- ₦50,000
- ₦100,000
- ₦150,000
- ₦200,000
A parameter can allow the manager to select a target and see how the sales performance changes.
How to Create a Parameter
- Open a Tableau worksheet.
- Right-click in the Data pane.
- Select Create Parameter.
- Give the parameter a name, such as Sales Target.
- Choose the appropriate data type, such as Integer or Number (decimal).
- Enter the values or range that users can select.
- Click OK.
- Right-click the parameter and select Show Parameter.
You can then use the parameter in a calculated field.
Example formula:
IF SUM([Sales]) >= [Sales Target] THEN "Target Reached" ELSE "Target Not Reached" END
This calculation checks whether the total sales have reached the selected target.
4. Understanding Trend Lines
A trend line is a line that helps show the general direction of data.
It can help you understand whether something is increasing, decreasing or staying relatively steady.
Imagine a shop records its sales every month.
| Month |
Sales |
| January |
₦50,000 |
| February |
₦60,000 |
| March |
₦70,000 |
| April |
₦85,000 |
| May |
₦95,000 |
The sales are generally increasing. A trend line can help show this pattern.
How to Add a Trend Line
- Create a chart using suitable numerical and date fields.
- Open the Analytics pane.
- Find Trend Line.
- Drag Trend Line into the chart area.
- Choose a suitable trend line model if required.
Tableau will display a trend line if the chart and data support it.
Important: A trend line shows a pattern in existing data. It does not prove why the pattern happened.
5. Understanding Forecasting
Forecasting means using past information to estimate what may happen in the future.
For example, a supermarket may study its sales from January to December to estimate sales for the next few months.
Tableau provides forecasting features for suitable time-based data.
Example
Imagine a shop records its sales every month:
- January: ₦100,000
- February: ₦120,000
- March: ₦140,000
- April: ₦160,000
Tableau may use the historical pattern to estimate future sales.
How to Create a Forecast
- Connect Tableau to a dataset containing dates and numerical values.
- Create a line chart using the date field and the measure you want to analyse.
- Open the Analytics pane.
- Find Forecast.
- Drag Forecast into the view.
- Review the estimated future values.
Forecasts are estimates, not guaranteed results. Unexpected events can make actual sales different from the forecast.
6. Understanding Hierarchies
A hierarchy allows you to organise data into levels, from general information to more detailed information.
For example, a Nigerian sales dataset may contain these location levels:
You can explore the information step by step.
Example: Exploring Sales Locations
Start with Nigeria to see total sales.
Move down to Oyo State to see sales in that state.
Move further down to Ibadan to see sales in that city.
This process helps you explore data at different levels.
How to Create a Hierarchy
- Find related fields in the Data pane.
- Drag one field onto another field to create a hierarchy.
- Give the hierarchy a suitable name.
- Add other related fields in the correct order.
- Use the hierarchy in your worksheet.
7. Understanding Table Calculations
Table calculations perform calculations on the values already displayed in a Tableau view.
They can help you understand how values compare with each other.
For example, a shop may want to calculate the running total of its daily sales.
| Day |
Daily Sales |
Running Total |
| Monday |
₦10,000 |
₦10,000 |
| Tuesday |
₦15,000 |
₦25,000 |
| Wednesday |
₦20,000 |
₦45,000 |
| Thursday |
₦5,000 |
₦50,000 |
The running total keeps adding the sales from previous days.
Examples of Table Calculations
- Running Total: Adds values as you move through the data.
- Difference: Shows how much one value differs from another.
- Percent of Total: Shows how much a value contributes to the total.
- Rank: Arranges values from highest to lowest or lowest to highest.
8. Understanding Data Stories
A data story is a way of presenting information in a sequence that helps people understand what the data is showing.
Instead of displaying many charts without explanation, you can arrange your findings into a story.
Tableau has a feature called Stories that allows you to present different views in a sequence.
Example: A Supermarket Sales Story
- First, show the total sales for the year.
- Next, show which products made the most money.
- Then, show how sales changed each month.
- Finally, explain which products the supermarket should consider restocking.
This sequence helps the manager understand the findings from beginning to end.
9. Practical Activity: Advanced Supermarket Analysis
Now it is time to practise your new skills.
Imagine you are a junior data analyst working for a supermarket in Ibadan.
You have received the following information:
| Product |
Category |
Month |
Sales |
| Rice |
Food |
January |
₦150,000 |
| Beans |
Food |
January |
₦90,000 |
| Bread |
Bakery |
January |
₦80,000 |
| Milk |
Dairy |
January |
₦65,000 |
| Rice |
Food |
February |
₦180,000 |
| Beans |
Food |
February |
₦100,000 |
| Bread |
Bakery |
February |
₦95,000 |
| Milk |
Dairy |
February |
₦75,000 |
| Rice |
Food |
March |
₦200,000 |
| Beans |
Food |
March |
₦120,000 |
| Bread |
Bakery |
March |
₦110,000 |
| Milk |
Dairy |
March |
₦90,000 |
Your Tasks
- Connect the dataset to Tableau.
- Create a group for products in the same category.
- Create a set to identify the top two products by sales.
- Create a parameter for a sales target of your choice.
- Create a calculated field to check whether sales have reached the target.
- Create a line chart showing monthly sales.
- Explore whether a trend line is suitable for your data.
- Create a running total of sales.
- Build a dashboard showing your findings.
- Write a short explanation of what the supermarket manager should know.
Challenge Questions
- What is the difference between a group and a set?
- How can a parameter help a supermarket manager?
- What does a trend line show?
- Why should forecasts not be treated as guaranteed results?
- How can a hierarchy help someone explore sales by location?
- What is a running total?
10. Key Terms to Remember
- Group: A way of combining related values into one category.
- Set: A collection of data values selected using conditions or manual choices.
- Parameter: A changeable value that can control a calculation or view.
- Trend Line: A line that shows the general direction of data.
- Forecast: An estimate of what may happen in the future based on past data.
- Hierarchy: An arrangement of data into different levels.
- Table Calculation: A calculation performed on values in a Tableau view.
- Running Total: A total that keeps adding values as you move through the data.
- Data Story: A presentation that explains findings using data and visualisations.
- Data Analysis: Examining information to discover useful patterns and insights.
11. Knowledge Check
Question 1
What is a group in Tableau?
- A way to combine related values
- A computer game
- A password
- A web browser
Question 2
What can a set help you identify?
- Top-performing products
- Computer viruses
- Keyboard buttons
- Internet passwords
Question 3
What is a parameter in Tableau?
- A value users can change to control a view or calculation
- A type of computer monitor
- A chart title
- A file extension
Question 4
What does a trend line show?
- The general direction of data
- The colour of a computer
- The number of worksheets
- The size of a keyboard
Question 5
What is forecasting?
- Deleting old data
- Estimating future values using past information
- Changing a chart colour
- Creating a password
Question 6
What is a hierarchy used for?
- Organising data into different levels
- Deleting a workbook
- Closing Tableau
- Removing all charts
Question 7
What is a running total?
- A total that keeps adding values
- A list of passwords
- A type of image
- A chart background
Question 8
Which feature can help users select a sales target?
- Parameter
- Image
- Worksheet tab
- File menu
Question 9
What is a data story used for?
- Presenting findings in a meaningful sequence
- Playing music
- Changing computer settings
- Deleting information
Question 10
Are Tableau forecasts guaranteed to be correct?
- Yes, always
- No, they are estimates based on available data
- Only on Mondays
- Only for supermarkets
Module 9 Summary
Congratulations! You have completed Module 9.
In this module, you learned how to:
- Group related data values.
- Create and use sets.
- Understand parameters.
- Use trend lines to explore patterns.
- Understand forecasting.
- Organise information using hierarchies.
- Understand table calculations.
- Present findings using data stories.
These features help data analysts explore information in more powerful ways.
Coming Up in Module 10
Tableau Project: From Raw Data to Interactive Dashboard
In the next module, you will complete a practical project using the skills you have learned. You will connect a dataset, prepare the information, create calculations, build charts and design a dashboard.
Keep practising. You are growing into a confident Tableau data analyst!