Sample Data
Sales data for products over three months (Jan, Feb, Mar). Columns B, C, D represent monthly sales.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Jan |
| C1 | Feb |
| D1 | Mar |
| A2 | Apples |
| B2 | 30 |
| C2 | 40 |
| D2 | 50 |
| A3 | Bananas |
| B3 | 20 |
| C3 | 25 |
| D3 | 30 |
Sales data for products over three months (Jan, Feb, Mar). Columns B, C, D represent monthly sales.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Jan |
| C1 | Feb |
| D1 | Mar |
| A2 | Apples |
| B2 | 30 |
| C2 | 40 |
| D2 | 50 |
| A3 | Bananas |
| B3 | 20 |
| C3 | 25 |
| D3 | 30 |
Unpivot columns Jan, Feb, Mar into attribute-value pairsA B C D 1 Product Jan Feb Mar 2 Apples 30 40 50 3 Bananas 20 25 30
A B C 1 Product Month Sales 2 Apples Jan 30 3 Apples Feb 40 4 Apples Mar 50 5 Bananas Jan 20 6 Bananas Feb 25 7 Bananas Mar 30
unpivoting columns in Power BI do?Product | Jan | Feb | Mar --------|-----|-----|---- A | 10 | 15 | 20 B | 5 | 7 | 8
Product | Attribute | Value --------|-----------|------ A | Jan | 10 A | Feb | 15 A | Mar | 20 B | Jan | 5 B | Feb | 7 B | Mar | 8shows Product repeated with each month as 'Attribute' and corresponding values, which matches unpivot output.
Region, Product, Q1, Q2, Q3, Q4. You want to analyze quarterly sales trends by region and product. Which is the best approach?Pass the test and this pattern moves unknown