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.
Pivot tables reference either a table name or a range of cells for their data. If you replace the data sometimes the table name or range is changed. When you try to refresh the pivot table data, Excel can't find the data because it's referring to the wrong/incorrect table name.