Excel 2007, Pivot Tables, Why are filters available when fields are in Axis Fields, but not when they are in the Report Filter?

VBAProIWish

Well-known Member
Joined
Jul 6, 2009
Messages
1,027
Office Version
  1. 365
Platform
  1. Windows
Excel 2007, Pivot Tables, Why are filters available when fields are in Axis Fields, but not when they are in the Report Filter?


Just wondering this answer. It took me a long time to figure out that the Label and Value filters that ARE available in the Axis Field on a Pivot Table report, but as soon as you move that field to the report filter, the option to filter is no longer there.

Is there a reason for this?

Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I´m having the same problem. I need my macro to filter a label but, as the field I need to filter is a row filter, I can´t.
Does anybody else had this problem already and found out a way to solve?

I searched the hole forum but this was the only topic related to my problem that I could find.

Right now I´m using the following macro, but when there are lot of pivotItems the macro take very long to run:

code:

Sub FILTRA_VALOR(nomeWorkSheetTD, NomeTD, nomeTDFiltro, valorDesejadoFiltrar)
Dim pviItem As PivotItem
Dim pvfField As PivotField
Application.ScreenUpdating = False
Set pvfField = Sheets(nomeWorkSheetTD).PivotTables(NomeTD) _
.PivotFields(nomeTDFiltro)
With Sheets(nomeWorkSheetTD).PivotTables(NomeTD).PivotFields(nomeTDFiltro)
For Each pviItem In pvfField.PivotItems
If pviItem <> valorDesejadoFiltrar Then
a = pviItem
.PivotItems(a).Visible = False
End If
Next
End With
Application.ScreenUpdating = True
End Sub
 
Last edited:
Upvote 0
A friend of mine helped me with this problem so I´ll post the solution here in case someone else has the same doubt.

Just need to use this code:

Sheets(WorkSheetPT).PivotTables(PT).PivotFields(TDFilter).CurrentPage = label

It will filter de Row Filter with the label you need.
 
Upvote 0
Would you please elaborate on how to make this happen? I add a form button, then assign the following macro on the button click?
A friend of mine helped me with this problem so I´ll post the solution here in case someone else has the same doubt.

Just need to use this code:

Sheets(WorkSheetPT).PivotTables(PT).PivotFields(TDFilter).CurrentPage = label

It will filter de Row Filter with the label you need.
 
Upvote 0
How do you use this Macro? Can you elaborate please?
A friend of mine helped me with this problem so I´ll post the solution here in case someone else has the same doubt.

Just need to use this code:

Sheets(WorkSheetPT).PivotTables(PT).PivotFields(TDFilter).CurrentPage = label

It will filter de Row Filter with the label you need.
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top