Forum Discussion

rostromarre's avatar
rostromarre
Frequent Visitor
7 years ago
Solved

Finding the most recent date/time for each row

Hello all,   I have a table with a date/time column with differents values and i would like to keep only the latest value for each row . Bassicaly i have this:   a   and I would like to hav...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    7 years ago

    rostromarre

     

    My bad....Sorry i missed this point

     

    Try this. See the attached file as well

     

    Step 1: First Add a custom column to get the dates only without time.

    =Int64.From([Dates])

    Convert above integer to date format to get the date portion

     

     

    Step 2: Group by ID and this DateOnly Column with Max of DateTime Column and All other rows

    as follows



    Step # 3: Now we use Table.Max function to get the other rows
     Then expand table and remove unnecessary columns