Worksheet records with latest date

Comments

4 comments

  • Joel Stewart

    Thanks for the clarification. Here's one approach that would work:

    Create a sheet to calculate the maximum date (date2)

    • GROUPBY(1)
    • GROUPMAX(#DataSheet!date2)

    Create a Join Sheet to inner-join #DataSheet!date2 with #MaximumDate!date2

    This essentially acts as a dynamic filter to calculate the maximum date and then use the inner-join to only include records that match the maximum date. 

    1
    Comment actions Permalink
  • Joel Stewart

    Peter, I'm not certain that I understand the whole scope of the workbook and the desired outcome. From my current understanding, it sounds like this is a case of Sorting Data.

    Specifically, analysts can select the Top N rows of data after it is sorted. In this case, the Top 1 record could be selected to determine the "latest date". 

    This assumes that only 1 total record is to be output. If the goal is to select the latest date within a specific grouping of data, perhaps the GROUPMAX function is more in line with your needs.

    If neither of these interpretations is correct, would you be able to share an example of a data set and the desired output from the sample? 

    0
    Comment actions Permalink
  • Peter Han-Grassman

    Hi Joel,

    I have records that have associated dates.  For example, 10k records with 50 attributes, include date field. Of the 10K records, 5k records have date1 value in date field.  5k records have date2 value in date field. Date1 comes before date 2.  I want to retrieve only records with date2 values and use that as the baseline for an infographic.

    Peter

     

     

    0
    Comment actions Permalink
  • enaven

    You could try applying filter on the date column to choose the required records only

    0
    Comment actions Permalink

Please sign in to leave a comment.