The data below are a subset of the Resale dataset provided with the software. This (computer simulated) data. gives the selling price, the number of bedrooms, the total square footage (finished and unfinished), and the size of. the lots for 150 residential properties sold during the last four months in two states.
A common scenario where PIVOT can be useful is when you want to generate cross-tabulation reports to summarize data. For example, suppose you want to query the PurchaseOrderHeader table in the AdventureWorks2008R2 sample database to determine the number of purchase orders placed by certain employees.
#2 You can use a table for your PivotTable. Tables and PivotTables are a great match. When you use a table as source data for a PivotTable, Excel will automatically expand and shrink the table as you add or remove data, so your PivotTable will always stay in sync with your data. To create a Table, select any cell in the data. Next, click the Table button on the Insert tab of the ribbon.