Dashboard Mode - Joining tables
Business Question
How can we combine customer information with their sales data to analyze total sales per customer?
Jump into concepts and practice - no test required
How can we combine customer information with their sales data to analyze total sales per customer?
| CustomerID | Name | Region |
|---|---|---|
| 1 | Alice | North |
| 2 | Bob | South |
| 3 | Charlie | East |
| 4 | Diana | West |
| SaleID | CustomerID | Amount |
|---|---|---|
| 101 | 1 | 100 |
| 102 | 2 | 200 |
| 103 | 1 | 150 |
| 104 | 3 | 300 |
| 105 | 4 | 250 |
SUM([Amount])Customers.CustomerID = Sales.CustomerIDSUM([Amount]) grouped by Name and Region| Name | Region | Total Sales |
|---|---|---|
| Alice | North | 250 |
| Bob | South | 200 |
| Charlie | East | 300 |
| Diana | West | 250 |
+----------------------+----------------------+ | Total Sales | Sales by Customer | | (KPI Card) | (Table) | +----------------------+----------------------+ | Sales Amount by Region (Bar Chart) | +-------------------------------------------------------+
Adding a filter on Region will update the Sales by Customer table and the Sales Amount by Region bar chart to show only customers and sales from the selected region(s). The Total Sales KPI card will also update to reflect the sum of sales in the filtered region(s).
If you add a filter for Region = East, which components update and what data do they show?
Orders and Customers on the CustomerID field in Tableau's custom SQL?Products with ProductID 1,2,3 and Sales with ProductID 2,3,4.Products LEFT JOIN Sales ON Products.ProductID = Sales.ProductID?Orders and Customers on CustomerID, but your result shows fewer rows than expected. What is the most likely cause?Orders, Customers, and Regions. You want to create a report showing total sales by region. Which join sequence in Tableau is best to ensure all orders are included even if some customers or regions are missing?