Summarized Table Rows

Hi, I am working on a statistic for a clients project and they get a lot of bookings on different platforms. We'd like to display a summarization of the bookings grouped by platform. Like in the attached example, "Reisefux" would be the platform and all the values are aggregated by the bookings of this specific platform. There could be more platforms than 1.
No description
Solution:
There is an feature, but it would group the bookings and show a summary below every group. If you want a custom one I think you need to overwrite the table footer
Jump to solution
7 Replies
alexanderkroneis
alexanderkroneisOPโ€ข14mo ago
At this stage, we are not interested in the specific bookings, we just want a brief overview how every platform is performing.
Solution
Dennis Koch
Dennis Kochโ€ข14mo ago
There is an feature, but it would group the bookings and show a summary below every group. If you want a custom one I think you need to overwrite the table footer
Dennis Koch
Dennis Kochโ€ข14mo ago
Yes Summaries combined with Group By
alexanderkroneis
alexanderkroneisOPโ€ข14mo ago
groupsOnly() was all I needed ๐Ÿ˜ฎ I read this page 2 times ๐Ÿ’€ Thanks! ๐Ÿ˜„
alexanderkroneis
alexanderkroneisOPโ€ข14mo ago
This is not allowed?
TextColumn::make('payments_sum_amount')
->label(__('Umsatz'))
->sum('payments', 'amount')
->formatStateUsing(fn($state) => format_money($state, 'EUR'))
->toggleable()
->summarize(Sum::make()),
TextColumn::make('payments_sum_amount')
->label(__('Umsatz'))
->sum('payments', 'amount')
->formatStateUsing(fn($state) => format_money($state, 'EUR'))
->toggleable()
->summarize(Sum::make()),
SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'payments_sum_amount'
SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'payments_sum_amount'
Want results from more Discord servers?
Add your server