F
Filament9mo 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
bwurtz9999mo 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
Horia9mo ago
I need to display the sum of 2 columns, and on the bottom a summary of those 2 columns added together
Horia
Horia9mo ago
Yes, it helped. Thank you!