A sales report has rows containing region, quarter, and revenue. Analysts need one row per region, separate columns for each quarter, and summed revenue in each cell. Which transformation provides this layout?
Show the answer
Correct answerB. Pivot quarter values and sum revenue by region.
AWhy not this: Sorting changes row order without reshaping the data or calculating the required totals.
BWhy this is right: Pivoting creates quarter columns and places the aggregated revenue for each region in the corresponding cells.
CWhy not this: Grouping produces region-quarter totals but retains a row for each region-quarter combination.
DWhy not this: A rolling average smooths values across a moving window rather than turning quarter values into columns.
Pivoting turns quarter values into columns and aggregates revenue at each region-quarter intersection. Grouping by region and quarter calculates the totals but leaves quarters represented as rows rather than separate columns.