Turn a column's distinct values into columns. Set a row dimension (pivotRows), a column dimension (pivotOn), and the measures to aggregate into each cell (pivotValues). Here: region × department, summing salary.
pivotRows
pivotOn
pivotValues