© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
3 replies
ζ͜͡Gurthang

Sumarize IF.....

I have this column in my table:
TextColumn::make('detalles.total')
    ->label('Total Detalle')
    ->getStateUsing(fn ($record) => $record->anulado? 0 : $record->detalles->sum('total'))
    ->money('ARS')
    ->summarize([
        Sum::make('total')->money('ARS')
    ]),
TextColumn::make('detalles.total')
    ->label('Total Detalle')
    ->getStateUsing(fn ($record) => $record->anulado? 0 : $record->detalles->sum('total'))
    ->money('ARS')
    ->summarize([
        Sum::make('total')->money('ARS')
    ]),

this sum every proformas_detalles total where anulado = 0, but when i tried to summarize the total its sums everything.
any idea?
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

Placeholder sumarize
FilamentFFilament / ❓┊help
2y ago
How can put top Sumarize data above text column or table how can do that
FilamentFFilament / ❓┊help
2mo ago
TextColumn formatState if state if empty
FilamentFFilament / ❓┊help
3y ago
iframe component
FilamentFFilament / ❓┊help
3y ago