The Unpivot function pivots data that is stored in columns into rows—the reverse of the function Pivot.