Automatically update pivot table filter

bossyscores22

New Member
Joined
May 6, 2014
Messages
10
I have a pivot table which includes a filtered date field. The goal is to provide a report showing projected activity for the next month. I can't use the "Next Month" filter since that will include results for the month of May only. I need results from today's date (4/20/15) until the same date in the following month (5/20/15). I'm not concerned about 30 or 31 day months as long as the filter gives me an approximate range of 30 days. Is there a macro that can accomplish this? Thanks in advance.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
hi,

If it suits, simplest might be to add a new field to the source data. Field name 'Next_Month' and formula to return TRUE or FALSE. Make this a page field in the pivot table and set to TRUE.

(More complex would be to do this without changing the source data by appropriate SQL to either filter the dataset, or, add a new field like the one just described above.)

OK?
 
Upvote 0

Forum statistics

Threads
1,215,863
Messages
6,127,391
Members
449,382
Latest member
DonnaRisso

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