Hello, Simply adding the last() at the end does not work. It gives me the last operation of the full request (whatever the budget) But i need each last operation for each budget.
On 29 nov, 17:43, monotasker <[email protected]> wrote: > If you just need the last row from your (ordered) select object, you can > just add ".last()" to the end of your query: > > db(db.operations.date.month() == current_month).select(db. > > operations.date,db.operations.budget,db.operations.title,db.operations.amouÂnt,groupby=db.operations.budget,orderby= > ~db.operations.date|~db.operations.id).last()

