0
0
Tableaubi_tool~15 mins

Aggregate vs row-level calculations in Tableau - Business Scenario Comparison

Choose your learning style9 modes available
Scenario Mode
👤 Your Role: You are a sales analyst at a retail company.
📋 Request: Your manager wants to understand the difference between total sales per region and the average sales per transaction in each region. They want a clear report showing both numbers side by side.
📊 Data: You have sales transaction data including Transaction ID, Region, Sales Amount, and Date.
🎯 Deliverable: Create a Tableau dashboard showing total sales by region (aggregate calculation) and average sales per transaction by region (row-level calculation aggregated).
Progress0 / 6 steps
Sample Data
Transaction IDRegionSales AmountDate
1001North2502024-01-05
1002South1502024-01-06
1003North3002024-01-07
1004East2002024-01-08
1005South1002024-01-09
1006East4002024-01-10
1007North1502024-01-11
1008South2002024-01-12
1
Step 1: Connect Tableau to the sales transaction data source.
Load the data with columns: Transaction ID, Region, Sales Amount, Date.
Expected Result
Data is available in Tableau for analysis.
2
Step 2: Create a calculated field for Total Sales by Region using aggregate calculation.
SUM([Sales Amount])
Expected Result
Total sales per region will be calculated by summing all sales amounts in that region.
3
Step 3: Create a calculated field for Average Sales per Transaction by Region using aggregate calculation on row-level data.
AVG([Sales Amount])
Expected Result
Average sales per transaction will be calculated by averaging sales amounts in each region.
4
Step 4: Build a Tableau worksheet with Region on Rows, and add Total Sales and Average Sales per Transaction as columns.
Drag 'Region' to Rows shelf; drag 'Total Sales' and 'Average Sales per Transaction' calculated fields to Columns shelf.
Expected Result
A table showing each region with its total sales and average sales per transaction side by side.
5
Step 5: Format the worksheet for clarity: add currency formatting to sales numbers and clear labels.
Format 'Total Sales' and 'Average Sales per Transaction' as currency with no decimals.
Expected Result
Sales figures are easy to read and understand.
6
Step 6: Create a dashboard and place the worksheet on it with a title explaining the difference between aggregate and row-level calculations.
Add a text box with title: 'Total Sales vs Average Sales per Transaction by Region'.
Expected Result
Dashboard clearly shows the two metrics side by side for comparison.
Final Result
Region    | Total Sales | Average Sales per Transaction
-------------------------------------------------------
North     | $700        | $233.33
South     | $450        | $150
East      | $600        | $300
North region has the highest total sales of $700.
East region has the highest average sales per transaction at $300.
South region has the lowest total and average sales.
Total sales is an aggregate sum of all transactions in a region.
Average sales per transaction shows the typical sale size in each region.
Bonus Challenge

Add a filter to the dashboard to allow the manager to select a date range and see how total and average sales change over time.

Show Hint
Use Tableau's date filter feature and apply it to the data source or worksheet to dynamically update the calculations.