© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Hemith

Access the current group data in summarizer.

public function table(Table $table): Table
{
    return $table
        ->columns([
            TextColumn::make('quantity')
                ->summarize(Sum::make()),
        ])
        ->defaultGroup('product.name');
}
public function table(Table $table): Table
{
    return $table
        ->columns([
            TextColumn::make('quantity')
                ->summarize(Sum::make()),
        ])
        ->defaultGroup('product.name');
}


In this example, I'm showing the product orders table grouped by the product name showing total quantity for each.
Can I get the product data in the summarizer for each group?
I want to display the data like so: ( Sum of Quantity / product.total_quantity).
Is this possible?
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 group label
FilamentFFilament / ❓┊help
2y ago
How to access the current data in edit page?
FilamentFFilament / ❓┊help
3y ago
SUMMARIZER USING CUSTOM DATA
FilamentFFilament / ❓┊help
4mo ago
How to access the current group value on summarize function
FilamentFFilament / ❓┊help
5mo ago