Complete the code to pivot the 'Sales' column by 'Region'.
PivotTable = Table.Pivot(Source, List.Distinct(Source[Region]), "Region", [1], List.Sum)
The pivot operation requires the column to aggregate, which is 'Sales' here.
Complete the code to aggregate sales by summing after pivoting.
PivotTable = Table.Pivot(Source, List.Distinct(Source[Region]), "Region", "Sales", [1])
Summing sales is common to get total sales per region after pivot.
Fix the error in the pivot code by choosing the correct aggregation function.
PivotTable = Table.Pivot(Source, List.Distinct(Source[Region]), "Region", "Sales", [1])
List.Sum correctly aggregates sales values; others cause errors or wrong results.
Fill both blanks to pivot sales by 'Product' and aggregate by sum.
PivotTable = Table.Pivot(Source, List.Distinct(Source[[1]]), "[1]", [2], List.Sum)
Pivoting by 'Product' and aggregating 'Sales' by sum shows total sales per product.
Fill all three blanks to pivot 'Quantity' by 'Date' and aggregate by sum.
PivotTable = Table.Pivot(Source, List.Distinct(Source[[1]]), "[1]", [2], List.[3])
Pivoting by 'Date' with 'Quantity' values aggregated by List.Sum gives total quantity per date.
