+ Reply to Thread
Results 1 to 6 of 6

How to display the last days days in pivot table?

  1. #1
    Forum Contributor
    Join Date
    06-20-2016
    Location
    Los Angeles/Thailand
    MS-Off Ver
    2016
    Posts
    250

    How to display the last days days in pivot table?

    Hello, I have a pivot table of 60 days or so, and I want the table only to show the last 20 days. Is this possible to do in pivot table?

    Here is an example worksheet.
    Attached Files Attached Files
    Last edited by sovietchild; 04-13-2018 at 07:28 AM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: How to display the last days days in pivot table?

    [wrong idea - deleted]

    but maybe with additional Date field in Values Area
    Attached Files Attached Files
    Last edited by sandy666; 04-13-2018 at 08:10 AM.

  3. #3
    Forum Contributor
    Join Date
    06-20-2016
    Location
    Los Angeles/Thailand
    MS-Off Ver
    2016
    Posts
    250

    Re: How to display the last days days in pivot table?

    Quote Originally Posted by sandy666 View Post
    [wrong idea - deleted]

    but maybe with additional Date field in Values Area
    Well, it did work, but then when I tried to use it with power pivot it gave me an error saying something like we can't sum the date.

    So, I used your idea but with helper. In the end its the exact same concept.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-20-2016
    Location
    Los Angeles/Thailand
    MS-Off Ver
    2016
    Posts
    250

    Re: How to display the last days days in pivot table?

    Thanks. Problem solved

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: How to display the last days days in pivot table?

    or you create a filed in the data table a2>large(a:A,21) and filter for true

    Otherwise its VBA

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: How to display the last days days in pivot table?

    You didn't say PowerPivot
    in Data Model duplicate Date column then change to number and use it in your Pivot as field in Value Area
    if you want to no see this column use CF with ;;;

    attached file with PowerPivot and Custom Format
    Attached Files Attached Files
    Last edited by sandy666; 04-13-2018 at 09:12 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pivot Chart with Formulas for Due in Next 15 Days / Next 30 Days
    By xxdboixx in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-02-2017, 02:34 PM
  2. [SOLVED] calculate total number of days between two days based on 365 days year
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-14-2016, 12:51 AM
  3. Pivot table: Grouping by Days
    By rafuk73 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-13-2015, 06:45 AM
  4. Pivot Table Working Days Add
    By johnsor1 in forum Excel General
    Replies: 4
    Last Post: 08-05-2015, 02:04 PM
  5. Pivot chart, display results repeated within 7 days
    By Twizik in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-24-2014, 11:44 AM
  6. Days to Months on a Pivot table
    By Stuand in forum Excel General
    Replies: 9
    Last Post: 09-26-2011, 07:37 AM
  7. how to display the last 7 days in a pivot chart - Macro
    By hattrick_123a in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-22-2011, 08:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1