Forum Discussion

WTAS80486's avatar
WTAS80486
Helper IV
3 years ago
Solved

To group a table based on previous date and its value previous date (one before max date)

Hi,   I need to group a table based on previous date and its value     Or i already grouped it based on max date, can i get previous date and value corresponding to max date for each numbe...
  • wdx223_Daniel's avatar
    3 years ago

    NewStep=Table.FromRecords(Table.Group(PreviousStepName,"Number",{"n",each Table.Skip(Table.Sort(_,{"date",1})){0}? ??_{0}})[n])