Forum

How do I filter a P...
 
Notifications
Clear all

How do I filter a Pivot Table on a Date Range?

4 Posts
2 Users
0 Reactions
138 Views
(@eparsons)
Posts: 2
New Member
Topic starter
 

 I have a large (fairly) table of sales transactions from my business which I analyze with pivot tables. I have created columns in my data table for Day, Month and Year from the Sales Date, and use slicers for those to drill down the data each month.  I look at data such as gallons sold, revenue and quantity of each varietal sold each month (I own a winery.)  Some months I don’t take inventory until the second or third day of the month, and I’d like to be able to look at the data for a specific date range such as July 2 - July 31, rather than using the July slicer.  I can’t figure out how to do this.  Any tips?

Thank you,

Emily Parsons

 
Posted : 25/08/2017 12:23 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Emily,

If you put the Date field (i.e. the field that contains the whole date, not just the day), in the Rows area or Filters are of your PivotTable you can filter for dates between a range. Click on the filter button for the field > Date Filters > Between and specify the dates you want.

Let me know if you get stuck.

Mynda

 
Posted : 25/08/2017 7:19 pm
(@eparsons)
Posts: 2
New Member
Topic starter
 

Thank you Mynda.  I will try it.  At this point the Date is structured with a time stamp as well which I haven't easily gotten rid of so I wind up with a huge data set of to choose from.  I'll mess with the date field more to clean it up and try that again.

 
Posted : 27/08/2017 8:38 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Emily,

Power Pivot ignores the time portion of the date. Just format the date column as data type; 'Date', and it should be fine.

Mynda

 
Posted : 28/08/2017 6:29 am
Share: