© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
1 reply
Eren

Duplicate summarizer

 TextColumn::make('total')
                    ->label('Total')
                    ->getStateUsing(fn ($record) => $this->cacheCalculations($record)['total'])
                    ->money(fn ($record) => $this->cacheCalculations($record)['currency'])
                    ->summarize([
                        \Filament\Tables\Columns\Summarizers\Summarizer::make()
                            ->label('This page')
                            ->using(function () {
                                return $this->getTableRecords()
                                    ->map(fn ($record) => $this->cacheCalculations($record)['total'])
                                    ->sum();
                            })
                            ->money(fn () => $this->getCurrencyFromTourSupplier()),

                        \Filament\Tables\Columns\Summarizers\Summarizer::make()
                            ->label('All reservations')
                            ->using(function () {
                                return $this->getTableQuery()
                                    ->get()
                                    ->map(fn ($record) => $this->cacheCalculations($record)['total'])
                                    ->sum();
                            })
                            ->money(fn () => $this->getCurrencyFromTourSupplier())
                    ])
 TextColumn::make('total')
                    ->label('Total')
                    ->getStateUsing(fn ($record) => $this->cacheCalculations($record)['total'])
                    ->money(fn ($record) => $this->cacheCalculations($record)['currency'])
                    ->summarize([
                        \Filament\Tables\Columns\Summarizers\Summarizer::make()
                            ->label('This page')
                            ->using(function () {
                                return $this->getTableRecords()
                                    ->map(fn ($record) => $this->cacheCalculations($record)['total'])
                                    ->sum();
                            })
                            ->money(fn () => $this->getCurrencyFromTourSupplier()),

                        \Filament\Tables\Columns\Summarizers\Summarizer::make()
                            ->label('All reservations')
                            ->using(function () {
                                return $this->getTableQuery()
                                    ->get()
                                    ->map(fn ($record) => $this->cacheCalculations($record)['total'])
                                    ->sum();
                            })
                            ->money(fn () => $this->getCurrencyFromTourSupplier())
                    ])


It show same summarize twice. both is correct but i didnt understand why its duplicate same results.

this page also shows all reservations results. also all reservations show this page results.
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

Summarizer label
FilamentFFilament / ❓┊help
2y ago
custom summarizer
FilamentFFilament / ❓┊help
3y ago
summarizer group label
FilamentFFilament / ❓┊help
2y ago
SUMMARIZER USING CUSTOM DATA
FilamentFFilament / ❓┊help
4mo ago