Table Filter is one of the macros bundled in the Table Filter and Charts for Confluence app. See the following pages for details:
Table filtration
Sorting, freezing and other table viewing options
Calculations in tables
Configuring the filtration pane