Visualizations can have dynamic titles and labels to match the results of a filter. You can add a data field name into the title using brackets {YourFieldName} and apply a filter to that field to get the results. When you filter the data, you will see the title automatically show the filter selections. You can do this from the Layout tab when creating or editing a visualization.

Here, entering “List of Department Bonuses in Years {year}” for the chart title gives the filter selections in the {year} position.