+ Reply to Thread
Results 1 to 5 of 5

Using Pivot Tables to Get Most Recent Piece of Data in a Large Dataset

  1. #1
    Registered User
    Join Date
    12-09-2014
    Location
    Providence, RI
    MS-Off Ver
    Excel 2010
    Posts
    16

    Using Pivot Tables to Get Most Recent Piece of Data in a Large Dataset

    I'm working with spreadsheets containing a large amount of data. Right now, it's pretty manageable, and most of my basic analysis work can be done manually. I'm thinking long term, where instead of 50-100 unique cases all of whom have their own sets of recording data, I'm going to have 1500-2000.


    I'm pretty new to pivot tables, and understand the basics, but am having trouble with what I'm currently trying to do.


    In the attached spreadsheet (I get sent an updated one every 2 weeks), there's a lot of columns! The unique identifier I primarily use when filtering data is Column G, the LRFID. The unique recordings I look at are labeled in Column Q, "RecUseNumber."

    The primary categories/scores/numbers I look at are "AWC" and "CT,"(Columns S thru AL) and more importantly, changes in those groups from their initial baseline recording, and their most recent one, using a specific formula. It's very easy to get the average baseline data, because all I need to do is filter out "RecUseNumber = 1". It's more complex to try and get the most recent recording data, because for some cases their most recent data comes from RecUseNumber = 8, and others it may be RecUseNumber = 13. I can easily scroll down and manually click the most recent scores by looking at every one, but this gets tedious, and will be impractical when the data set grows larger.


    As an example, what I've been trying to do is get the most recent recording data for Column V, AWC_Change, for every single LRFID. Every recording has a date (Column M) but I can't figure out if there's a way to use the pivot table to filter out ONLY the most recent sets of data.


    Any help is appreciated. When using the spreadsheet, use the "Recording Data" tab at the bottom. The other 3 tabs can be ignored.



    EDIT:

    I can get as far as this -- using the pivot table, I enter in LRFID as the Row Label, and for Values, use the "Max" value of RecordingDate. That gives me the most recent recording date for every unique identifier, but I can't figure out how to progress past that.


    data export 2_18.xlsx
    Last edited by kslattery; 02-20-2015 at 04:40 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Using Pivot Tables to Get Most Recent Piece of Data in a Large Dataset

    Is the attached what you are after?
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    12-09-2014
    Location
    Providence, RI
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Using Pivot Tables to Get Most Recent Piece of Data in a Large Dataset

    Andy,


    That's about as far as I was able to get. It's not quite what I'm looking for --- for example, with LRFID 52 and 54 (the first ones in the spreadsheet) the most recent recording on each is 9/27/14, and 12/23/14, respectively. The respective "AWC Change" datapoints on both are -2301, and -2893.

    What I'm hoping to do is get an easy accessible list of each of the most recent recording for every LRFID. So for example a list that shows the -2301 and -2893 numbers, etc etc. I don't know if there's a function or more complex formula that allows for that.


    Thanks for the help,


    -Kevin

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Using Pivot Tables to Get Most Recent Piece of Data in a Large Dataset

    More like this?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-09-2014
    Location
    Providence, RI
    MS-Off Ver
    Excel 2010
    Posts
    16

    Thumbs up Re: Using Pivot Tables to Get Most Recent Piece of Data in a Large Dataset

    This is exactly what I was looking for ---- thank you! I didn't think to use the Top 10 setting in the value filter. I can play around with as many categories as I need with this....very easy.

+ 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. How to display output from one locked data piece and one client-input data piece?
    By tnovak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2014, 12:48 PM
  2. Replies: 3
    Last Post: 01-23-2014, 10:13 AM
  3. Averaging Discrete Sets of Data in a Large Dataset
    By wrf_89 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-26-2013, 03:27 PM
  4. [SOLVED] Daily Average from large data set- pivot tables not applicable???
    By tony morrison in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-10-2013, 01:50 AM
  5. Using Pivot tables to summarize large data separated by funds
    By eeanil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2012, 05:30 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