To create filters on the data visualized in a plot click the Show Filter Table button below the data source select in the right sidebar. This will display a table below the plot where you can click the Filter button to add a filter on a column.

Any filters added will automatically update the data displayed in your plot.