Dashboard Mode - Unpivoting columns
Business Question
How can we transform monthly sales data from columns into rows to analyze sales trends easily?
How can we transform monthly sales data from columns into rows to analyze sales trends easily?
| Product | Jan | Feb | Mar |
|---|---|---|---|
| Apples | 100 | 120 | 130 |
| Bananas | 80 | 90 | 95 |
| Cherries | 50 | 60 | 70 |
| Dates | 40 | 45 | 50 |
| Elderberries | 30 | 35 | 40 |
Product, Month, and Sales. This is created by unpivoting the Jan, Feb, and Mar columns into rows.Total Sales = SUM('UnpivotedData'[Sales])Month, Y-axis: Sales, Legend: Product. Shows how sales change over months for each product.+----------------------+---------------------+ | Total Sales by Month | Sales Trend Line | | (KPI Card) | (Line Chart) | +----------------------+---------------------+ | Unpivoted Table | +----------------------------------------------+
Adding a slicer for Product allows filtering the unpivoted table, KPI card, and line chart to show data only for the selected product(s). Selecting a month in the line chart highlights sales for that month in the table and updates the KPI card accordingly.
If you add a filter to show only Product = Bananas, which components update and what changes occur?