Summarize a math problem
Hello as you can see i use the getStateUsing i wanted to get the same value in the total_dividend_value and use the summarize to count it all up. But i didn't found a way to do it
Tables\Columns\TextColumn::make('dividend_value')->getStateUsing(fn($record) => $record->stockInfo->last_dividend * $record->quantity)->label('Dividend Waarde'),
Tables\Columns\TextColumn::make('total_dividend_value')
->summarize(Summarizer::make())
Tables\Columns\TextColumn::make('dividend_value')->getStateUsing(fn($record) => $record->stockInfo->last_dividend * $record->quantity)->label('Dividend Waarde'),
Tables\Columns\TextColumn::make('total_dividend_value')
->summarize(Summarizer::make())
