© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
Jr.Pikong

export format column

Hi everyone,

Can anyone explain how to set up
ExportColumn
ExportColumn
to use a numeric value?

I tried using
formatStateUsing
formatStateUsing
, but it is still not working:

ExportColumn::make('balance')
                ->formatStateUsing(fn(int $state): int => $state);
ExportColumn::make('balance')
                ->formatStateUsing(fn(int $state): int => $state);


The result is still a TEXT value (as shown in the screenshot).
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 Export Action Format Columns
FilamentFFilament / ❓┊help
17mo ago
Custom column export
FilamentFFilament / ❓┊help
3y ago
Hide Column From Export
FilamentFFilament / ❓┊help
2y ago
Format state on empty column
FilamentFFilament / ❓┊help
17mo ago