Horizontally Pivoting
Pivot Enterprise edition is enhance version of previous version of Pivoting Stage
- In previous version we used to have horizontal Pivoting(H.P)
- In Pivot Enterprise version we can do horizontal version and vertical pivoting along with aggregating functions.
- they have Introduced Pivot Index Column
- H P:- converting Columns to rows in Horizontally placed columns
- V.P: rows to columns in Vertically Converting
REPID,last_name,Jan_sales,Feb_sales,Mar_sales
Source Data
Design your basic job by doing the following tasks:
Seq_File------->Pivot Enterprise---------->Dataset
Here we are making horizontal pivot so Select Horizontal Type
Map to Input columns to Output
HERE WE CAN SEE one more advance feature is pivot index
1)here i don't want appear all sales data...so delete all columns and create new column to appear all data in rows
2)in new column double click on that and select rows selected ones
Output data for a simple horizontal pivot operation
Thanks & Regards
Siva
No comments:
Post a Comment