+ Reply to Thread
Results 1 to 6 of 6

Pull data from pivot table based on date

  1. #1
    Forum Contributor
    Join Date
    04-25-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    150

    Pull data from pivot table based on date

    Hi all,

    I have a large pivot table with account info over several years, and would like to pull selected data from the pivot table to create some graphs.

    I have the pivot table on Sheet 2, and a smaller table with only the selected data on Sheet 1. I would like to then create the graphs from the smaller table on Sheet 1.

    My formula is =GETPIVOTDATA("Sales";Sheet2!$E$4;"Date";DATE(2011;1;1);"Account";1)

    So basically what I want is the DATE() part of the above formula to be filled in based on the value of a cell in Sheet 1. Something like DATE(Sheet 1!B3). Any ideas?

    Thanks!

    Darrel
    Attached Files Attached Files

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Pull data from pivot table based on date

    So, I took a little different approach to your problem...I copied your current PT and then used the Row/Column filter to split out Cost/Revenues and then Dates. Then I created charts for each...I'm sure if this helps or not....I hope so....
    Attached Files Attached Files
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Pull data from pivot table based on date

    Have you tried using slicers?

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pull data from pivot table based on date

    not sure what you want.

    maybe like this.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Contributor
    Join Date
    04-25-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: Pull data from pivot table based on date

    Thanks for all the feedback. Unfortunately I'm still stuck. The reason being that my pivot table contains all the account numbers as in the sample, and the graphs will have to show both costs and revenues, as well as some calculated percentages etc.. So it doesn't work to separate the pivot table into two and then make two separate graphs. Also, the figures of interest are the totals for the respective revenue and cost accounts. When I try and make a graph based on the pivot table, it holds the accounts separate meaning I get 6 different lines when I want 1.

    I hope this helps explain why I've been trying to extract the data into a second table, and then make the graphs from the second table as opposed to directly from the pivot table. The end goal is that the user will define the time period (or rather, define the current month and the start point will be defined as current month minus 3 years), and the graphs will update accordingly.

  6. #6
    Forum Contributor
    Join Date
    04-25-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: Pull data from pivot table based on date

    I managed to find a different thread which works perfectly for me, http://www.excelforum.com/excel-form...vot-table.html

    The formula is this
    =GETPIVOTDATA("Value",Pivot!$B$2,"Currency",B$2,"Time Indicator",$A3)

    Thanks anyway for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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