เวลาที่เราทำ Pivot Table เสร็จแล้วมีการเปลี่ยนแปลงข้อมูลใน Source Data อาจทำให้มีเหตุการณ์ที่มี Item ที่เคยอยู่ใน Source Data เก่าตกค้างใน Drop Down List ใน Row Label, Column Label, หรือ Filter ได้
![pivot-old-item](http://www.thepexcel.com/wp-content/uploads/2014/01/pivot-old-item.gif)
หากเพื่อนๆใช้ Excel ตั้งแต่ Version 2007 ขึ้นไป สามารถแก้ไขเหตุการณ์ดังกล่าวได้ง่ายมากๆ โดย
- คลิ๊กขวาที่ตาราง Pivot
- เลือก PivotTable options
- เลือก Data tab
- ในหมวด Retain Items เลือก None
- OK แล้วกด Refresh ตาราง Pivot อีกครั้ง
![pivot-old-item2](http://www.thepexcel.com/wp-content/uploads/2014/01/pivot-old-item2.gif)
สำหรับ Excel Version เก่า สามารถไปโหลด Script VBA เพื่อแก้ไขได้ที่ http://www.contextures.com/xlPivot04.html
Leave a Reply