F
Filament13mo ago
Horia

Summary Sum() of 2 fields

Is there a way to add a summary sum of 2 columns from the database? I have an accessor for that, but Sum() doesn't work with that name. Thanks!
4 Replies
bwurtz999
bwurtz99913mo ago
Are you using a standard Filament table? If so, you could define a TextColumn and use ->default() to set the value to whatever you need it to be
Horia
HoriaOP13mo ago
I need to display the sum of 2 columns, and on the bottom a summary of those 2 columns added together
Horia
HoriaOP13mo ago
Yes, it helped. Thank you!
Want results from more Discord servers?
Add your server