© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
11 replies
Shavik

Table Column Summary using Quantity

I have the following table column and 'Sum' working in the attached screenshot.

My code for this is as follows:
Tables\Columns\TextColumn::make('price')
    ->money()
    ->summarize(Sum::make()->money()->label('Total Price')),
Tables\Columns\TextColumn::make('price')
    ->money()
    ->summarize(Sum::make()->money()->label('Total Price')),


My problem is that the sum doesn't take into each row's quantity.

How can I make the sum take each row's quantity into account?

For example, I need to mulitply each row's price * it's quantity then sum all of those.

Thanks for any insight into this!
image.png
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

Table summary
FilamentFFilament / ❓┊help
5mo ago
Table Summary Color
FilamentFFilament / ❓┊help
2y ago
Conditionally hide table summary
FilamentFFilament / ❓┊help
2y ago
Table Column
FilamentFFilament / ❓┊help
3y ago