Dashboard Mode - Pivoting columns
Business Question
How can we transform sales data from a list format into a summary table that shows total sales per product for each month?
How can we transform sales data from a list format into a summary table that shows total sales per product for each month?
| OrderID | Product | Month | Sales |
|---|---|---|---|
| 1 | Apples | Jan | 100 |
| 2 | Apples | Feb | 150 |
| 3 | Bananas | Jan | 200 |
| 4 | Bananas | Feb | 180 |
| 5 | Cherries | Jan | 120 |
| 6 | Cherries | Feb | 130 |
| Product | Jan | Feb |
|---|---|---|
| Apples | 100 | 150 |
| Bananas | 200 | 180 |
| Cherries | 120 | 130 |
Total Sales = SUM(SalesData[Sales])Sales by Product = CALCULATE(SUM(SalesData[Sales]))+----------------------+----------------------+ | Total Sales | Sales by Product | | (Card) | (Bar Chart) | +----------------------+----------------------+ | Pivot Table | | (Matrix Visual) | +---------------------------------------------+
A slicer for Month allows filtering the data. When a month is selected, the Pivot Table, Total Sales Card, and Sales by Product Bar Chart update to show data only for that month.
Example: Selecting 'Jan' filters all visuals to show sales only for January.
If you add a filter selecting Month = Feb, which components update and what will the Total Sales Card show?
Answer: All components update. The Total Sales Card will show 460 (150 + 180 + 130).