0
0
Tableaubi_tool~15 mins

Excel and CSV connections in Tableau - Real Business Scenario

Choose your learning style9 modes available
Scenario Mode
👤 Your Role: You are a sales analyst at a retail company.
📋 Request: Your manager wants you to analyze monthly sales data from two sources: an Excel file with product details and a CSV file with sales transactions. They want a combined report showing total sales per product category.
📊 Data: You have two files: 1) Excel file 'Products.xlsx' with columns ProductID, ProductName, Category. 2) CSV file 'Sales.csv' with columns SaleID, ProductID, SaleDate, Quantity, Price.
🎯 Deliverable: Create a Tableau dashboard that connects to both files, combines the data, and shows total sales amount by product category.
Progress0 / 6 steps
Sample Data
ProductIDProductNameCategory
101Red T-ShirtClothing
102Blue JeansClothing
103Running ShoesFootwear
104Baseball CapAccessories

SaleIDProductIDSaleDateQuantityPrice
11012024-01-05215
21022024-01-07140
31032024-01-10160
41012024-01-15315
51042024-01-20210
61032024-01-22160
1
Step 1: Open Tableau and connect to the Excel file 'Products.xlsx'.
In Tableau, click 'Connect', select 'Microsoft Excel', then open 'Products.xlsx'.
Expected Result
Tableau shows the 'Products' table with ProductID, ProductName, and Category columns.
2
Step 2: Add a connection to the CSV file 'Sales.csv' in the same Tableau workbook.
In Tableau, click 'Add' under Connections, select 'Text file', then open 'Sales.csv'.
Expected Result
Tableau shows the 'Sales' table with SaleID, ProductID, SaleDate, Quantity, and Price columns.
3
Step 3: Create a relationship between the 'Products' and 'Sales' tables using the ProductID field.
In Tableau's Data Source tab, drag 'Sales' table next to 'Products' table and create a relationship on 'ProductID'.
Expected Result
Tables are linked by ProductID, enabling combined analysis.
4
Step 4: Create a calculated field 'Sales Amount' in Tableau to calculate total sales per row.
Create calculated field: [Quantity] * [Price]
Expected Result
New field 'Sales Amount' shows total sales value for each sale.
5
Step 5: Build a worksheet showing total sales amount by product category.
Rows: Category; Columns: SUM([Sales Amount])
Expected Result
Bar chart or table showing total sales per category: Clothing, Footwear, Accessories.
6
Step 6: Create a dashboard to display the sales by category visualization with a clear title.
Add the worksheet to a new dashboard; add title 'Total Sales by Product Category'.
Expected Result
Dashboard shows total sales by category clearly for manager review.
Final Result
Dashboard: Total Sales by Product Category

Category     | Total Sales
----------------------------
Clothing     | $115
Footwear     | $120
Accessories  | $20

Bar chart with three bars representing these totals.
Clothing category has total sales of $115.
Footwear category leads with $120 in sales.
Accessories category has the lowest sales at $20.
Bonus Challenge

Add a filter to the dashboard to allow the manager to select sales by month.

Show Hint
Use the SaleDate field to create a date filter and add it to the dashboard for interactive filtering.