메인 컨텐츠로 가기

Excel의 피벗 테이블에서 필터 캐시 (이전 항목)를 지우는 방법은 무엇입니까?

아래 스크린 샷과 같이 데이터 범위를 기반으로 피벗 테이블을 만듭니다. 원본 범위에서 데이터를 삭제 한 후에도 피벗 테이블을 새로 고쳐도 이전 항목은 피벗 테이블의 드롭 다운 메뉴에 계속 남아 있습니다. 피벗 테이블의 드롭 다운 메뉴에서 이전 항목을 모두 제거하려는 경우이 문서의 방법이 도움이 될 수 있습니다.

옵션을 변경하여 피벗 테이블에서 필터 캐시 (이전 항목) 지우기
VBA 코드를 사용하여 모든 피벗 테이블에서 필터 캐시 (이전 항목) 지우기


옵션을 변경하여 피벗 테이블에서 필터 캐시 (이전 항목) 지우기

옵션을 변경하여 피벗 테이블에서 필터 캐시를 지울 수 있습니다. 다음과 같이하십시오.

1. 피벗 테이블 내의 아무 셀이나 마우스 오른쪽 버튼으로 클릭 한 다음 피벗 테이블 옵션 상황에 맞는 메뉴에서. 스크린 샷보기 :

2. 에서 피벗 테이블 옵션 대화 상자에서 Data 탭에서 없음 인사말 필드 당 보유 할 항목 수 드롭 다운 목록을 클릭 한 다음 OK 버튼을 클릭합니다.

3. 피벗 테이블 셀을 마우스 오른쪽 단추로 클릭 한 다음 새로 고침 오른쪽 클릭 메뉴에서. 스크린 샷보기 :

그러면 아래 스크린 샷과 같이 피벗 테이블의 드롭 다운 메뉴에서 이전 항목이 제거 된 것을 볼 수 있습니다.


VBA 코드를 사용하여 모든 피벗 테이블에서 필터 캐시 (이전 항목) 지우기

활성 통합 문서의 여러 워크 시트에있는 모든 피벗 테이블에서 필터 캐시를 지우려는 경우. 아래 VBA 스크립트를 시도하십시오.

1. 통합 문서에서 모든 피벗 테이블의 이전 항목을 지우려면 다른 + F11 동시에 열려면 키 Microsoft Visual Basic for Applications 창.

2. 에서 응용 프로그램 용 Microsoft Visual Basic 창에서 이 워크북 FBI 증오 범죄 보고서 프로젝트 창을 열어 ThisWorkbook (코드) 창을 클릭 한 다음 아래 VBA 코드를 복사하여 창에 붙여 넣습니다.

VBA 코드 : 활성 통합 문서의 모든 피벗 테이블에서 필터 캐시 (이전 항목) 지우기

Private Sub Workbook_Open()
    Dim xPt As PivotTable
    Dim xWs As Worksheet
    Dim xPc As PivotCache
    Application.ScreenUpdating = False
    For Each xWs In ActiveWorkbook.Worksheets
        For Each xPt In xWs.PivotTables
            xPt.PivotCache.MissingItemsLimit = xlMissingItemsNone
        Next xPt
    Next xWs
    For Each xPc In ActiveWorkbook.PivotCaches
        On Error Resume Next
        xPc.Refresh
    Next xPc
    Application.ScreenUpdating = True
End Sub

3. 누르세요 F5 키를 눌러 코드를 실행하면 활성 통합 문서에있는 모든 피벗 테이블의 드롭 다운 메뉴에서 이전 항목이 즉시 제거됩니다.


관련 기사:

최고의 사무 생산성 도구

🤖 Kutools AI 보좌관: 다음을 기반으로 데이터 분석을 혁신합니다. 지능형 실행   |  코드 생성  |  사용자 정의 수식 만들기  |  데이터 분석 및 차트 생성  |  Kutools 기능 호출...
인기 기능: 중복 항목 찾기, 강조 표시 또는 식별   |  빈 행 삭제   |  데이터 손실 없이 열이나 셀 결합   |   수식없이 반올림 ...
슈퍼 조회: 다중 기준 VLookup    다중 값 VLookup  |   여러 시트에 걸친 VLookup   |   퍼지 조회 ....
고급 드롭다운 목록: 드롭다운 목록을 빠르게 생성   |  종속 드롭다운 목록   |  다중 선택 드롭 다운 목록 ....
열 관리자: 특정 개수의 열 추가  |  열 이동  |  Toggle 숨겨진 열의 가시성 상태  |  범위 및 열 비교 ...
특색 지어진 특징: 그리드 포커스   |  디자인보기   |   큰 수식 바    통합 문서 및 시트 관리자   |  리소스 라이브러리 (자동 텍스트)   |  날짜 선택기   |  워크 시트 결합   |  셀 암호화/해독    목록으로 이메일 보내기   |  슈퍼 필터   |   특수 필터 (굵게/기울임꼴/취소선 필터링...) ...
상위 15개 도구 세트12 본문 도구 (텍스트 추가, 문자 제거,...)   |   50+ 거래차트 유형 (Gantt 차트,...)   |   40+ 실용 방식 (생일을 기준으로 나이 계산,...)   |   19 삽입 도구 (QR 코드 삽입, 경로에서 그림 삽입,...)   |   12 매출 상승 도구 (숫자를 단어로, 환율,...)   |   7 병합 및 분할 도구 (고급 결합 행, 셀 분할,...)   |   ... 그리고 더

Excel용 Kutools로 Excel 기술을 강화하고 이전과는 전혀 다른 효율성을 경험해 보세요. Excel용 Kutools는 생산성을 높이고 시간을 절약하기 위해 300개 이상의 고급 기능을 제공합니다.  가장 필요한 기능을 얻으려면 여기를 클릭하십시오...

상품 설명


Office Tab은 Office에 탭 인터페이스를 제공하여 작업을 훨씬 쉽게 만듭니다.

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
Comments (14)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Hola. Muchisimas gracias, tu ejemplo practico me ayudo mucho y logre resolver el incovenienre.
Me fui por la primera opción, desde la tabla dinamica.
Rated 5 out of 5
This comment was minimized by the moderator on the site
I am facing similar cache issue in my pivot tables and charts created using Power Pivot. Will the above two options works for Pivot Tables created using Power Pivot? Please let me know, if you have any other solution for Power Pivots.
This comment was minimized by the moderator on the site
Hi Manikanta,
The methods provided in this post haven't tested in Power Pivots, sorry I can't help you.
This comment was minimized by the moderator on the site
Thank you Crystal, for the reply. Can anyone suggest other forums to get the solution to remove filter catch for Power Pivot.
This comment was minimized by the moderator on the site
Hi Manikanta,
Maybe you can post your question in our forum. You may get help from others there.
https://www.extendoffice.com/forum/categories/3-excel.html
This comment was minimized by the moderator on the site
You are Awesome!!
Thank you.
This comment was minimized by the moderator on the site
Merci beaucoup ! Depuis le temps que je cherchais à effacer ces caches.... ce n'était pas évident à trouver, voire impossible sans votre aide !
This comment was minimized by the moderator on the site
Thank you!!
This comment was minimized by the moderator on the site
Sir, Thank you very much. it works wonderfully. I was annoyed by this problem. Thanx a lot.
This comment was minimized by the moderator on the site
run time error '1004'... it does not work for me..why?
This comment was minimized by the moderator on the site
Hi mark,
Which Excel version are you using?
This comment was minimized by the moderator on the site
it works, thank you
This comment was minimized by the moderator on the site
It worked for me. Thank you!
This comment was minimized by the moderator on the site
I got a pivot of a table where the filter shows an incorrect value. The analyst name is A in the filter (set retain values to none) but if you go to the table, the same line has the analyst B. If you double click on the line in the pivot table it generates a sheet with the data where the analyst name is B despite the pivot showing A. This table is updated once a month, it worries me because I often do this, update my raw data and update the pivot, now that I have this precedent I cannot trust the information is correct.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations