Grouping month year and group summarize (total amount)
I couldn't figure out what I do wrong.
grouping expenses by month-year works but when I want to show summarize on each month, sum is wrong
Here is my Code

7 Replies
Seems to only be getting the last value. What does your model look like?
@toeknee
sorry for the late reply, I've not noticed your message.
Yes, summarize gets only last day's amount (in the list), but if there are more entries on the same day, sum of the entries will be showed

So strange, do you have a scope on your model?
I suggest removing this package, it contains your .env file which contains your database password too...
I deleted the message
@Emruardo Ok so the issue is down to how you have built the group. You are grouping by date so the last total is the last date unless there is multiple on that date. It becomes messy. So instead create a virtual column as your using mysql:
then use month_date instead of date and jobs a goodun.
@toeknee Thanks a lot.
Not only for the solution, at the same time I learned something new.
*password in .env nowhere is used (changed before uploading), but thank you for concern
Thank you dearly for this. I can now go put some ice on the bruises on my head!