Dashboard Mode - Percent of total
Dashboard Goal
Understand how each product's sales contribute to the total sales in the store.
Jump into concepts and practice - no test required
Understand how each product's sales contribute to the total sales in the store.
| Product | Sales |
|---|---|
| Apples | 100 |
| Bananas | 200 |
| Cherries | 300 |
| Dates | 400 |
| Elderberries | 500 |
SUM([Sales])
SUM([Sales]) / TOTAL(SUM([Sales]))
SUM([Sales]) / TOTAL(SUM([Sales]))
+----------------------+-----------------------------+
| Total Sales | Sales by Product |
| (KPI Card) | (Bar Chart) |
+----------------------+-----------------------------+
| Percent of Total Sales by Product (Bar Chart) |
+--------------------------------------------------------+
| Sales and Percent of Total (Table) |
+--------------------------------------------------------+
Applying a filter on Product updates all components:
If you add a filter to show only Apples and Bananas, which components update and how?
Sales?TOTAL() wraps the aggregation to get the grand total, so SUM([Sales]) / TOTAL(SUM([Sales])) is correct.SUM([Sales]) / TOTAL(SUM([Sales]))?SUM([Sales]) / TOTAL(SUM(Sales)) but Tableau shows an error. What is the problem?TOTAL(SUM(Sales)) but should be TOTAL(SUM([Sales])).SUM([Sales]) / TOTAL(SUM([Sales])) to get each region's share.