Dashboard Mode - Transpose operations
Dashboard Goal
This dashboard helps you see sales data by switching rows and columns. It answers: How do sales numbers look when we flip the data layout?
This dashboard helps you see sales data by switching rows and columns. It answers: How do sales numbers look when we flip the data layout?
| Product | Q1 Sales | Q2 Sales | Q3 Sales |
|---|---|---|---|
| Apples | 100 | 150 | 200 |
| Bananas | 80 | 120 | 160 |
| Cherries | 90 | 110 | 130 |
Total Sales Apples = CALCULATE(SUM(Sales[Q1 Sales]) + SUM(Sales[Q2 Sales]) + SUM(Sales[Q3 Sales]), Sales[Product] = "Apples") Total Sales Bananas = CALCULATE(SUM(Sales[Q1 Sales]) + SUM(Sales[Q2 Sales]) + SUM(Sales[Q3 Sales]), Sales[Product] = "Bananas") Total Sales Cherries = CALCULATE(SUM(Sales[Q1 Sales]) + SUM(Sales[Q2 Sales]) + SUM(Sales[Q3 Sales]), Sales[Product] = "Cherries")
+----------------------+-------------------------+ | Original Sales Table | Total Sales per Product | | | | +----------------------+-------------------------+ | Transposed Sales Table | +---------------------------------------------+
Adding a slicer for Product filters both the Original Sales Table and the Transposed Sales Table to show only selected products. The Total Sales cards update to show totals for the selected product(s).
If you add a filter to show only Bananas, which components update and what do they show?
Table.Transpose function do in Power BI's Power Query?Table.Transpose is designed to switch rows and columns in a table.SalesData in Power Query?FunctionName(Parameter). Here, Table.Transpose(SalesData) is correct.Product | Jan | Feb --------|-----|---- A | 10 | 20 B | 30 | 40
Table.Transpose?Table.Transpose(SalesData) but get an error. Which is the most likely cause?Table.Transpose flips months into rows. Adding an index helps keep months in order for trend analysis.Pass the test and this pattern moves unknown