This article explains how to create a query that leverages variables. This allow to dynamically query the datasource and so reduce the time necessary to retrieve the results.

  1. Select the database column that you want to use in the comparison.
  2. Select the comparison method
  3. Choose the right variable

    In order to select the variables, click on the icon on the right and select the Variable option

Your table should now able to retrieve only the data of the data range you selected.