Forum Discussion

stribor45's avatar
stribor45
Icon for Post Prodigy rankPost Prodigy
1 year ago
Solved

Selecting Rows by Max Date and something else

I have table where multiple rows with same ID may exist but with  different or sometimes same values in Date column.  Of course I can group this by ID and select ones with MAX date however since some...
  • AlienSx's avatar
    AlienSx
    1 year ago
    Table.FromRecords(
        Table.Group(Source, "id", {"recs", (x) => Table.Max(x, {"Date", (w) => - w[Decision column]})})[recs]
    )