Query variables let you extract data from a data source and use it to populate a dashboard variable.
To query the CSV data source for variables, follow the instructions on how to Add a query variable. Make sure to select the CSV from the list of data sources.
For more information on how to configure a query, refer to Query editor.