© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
nicobrave

Summary of all the column values

Hello!

I created this text column that shows the total sum of every row I have in the table:
Tables\Columns\TextColumn::make('sum_total_row')
      ->label('Activities Total')
      ->default( fn(Model $record) => $record->activities->sum('pivot.attributeX'))
      ->money('EUR')
      ->summarize(Summarizer::make()
          ->label('Total')
          ->using(fn () => 888)
      );
Tables\Columns\TextColumn::make('sum_total_row')
      ->label('Activities Total')
      ->default( fn(Model $record) => $record->activities->sum('pivot.attributeX'))
      ->money('EUR')
      ->summarize(Summarizer::make()
          ->label('Total')
          ->using(fn () => 888)
      );


I also want to show the total sum of this specific column values. I managed to show a hardcoded number (888) above the column, but I can't show the dynamic sum.

I can't use the standard way to calculate the column sum, because this is not a DB column, it's dynamically created in my ManageRelatedRecords class.

Thanks!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Change the label of all page summary in the table.
FilamentFFilament / ❓┊help
3y ago
Table Column Summary using Quantity
FilamentFFilament / ❓┊help
3y ago
Change the label of the 'All Model' summary in a filament table?
FilamentFFilament / ❓┊help
15mo ago
Arbitrary values for table column
FilamentFFilament / ❓┊help
3y ago