Since 2sxc 10.23 (see blog) you can define Params to configure what the Query does. 

This recipe assumes you've already created a Visual Query and that you're in the edit-view of the Visual Query. 

  1. Define the List of Params with default values (assuming you have default values)
    1. Open the Query Configuration
    2. Write down each Param on each line using best-practices setting params
    3. Where possible also add a default value to the parameter default params
    4. Save
  2. Create Test-Values for your Params to enable testing
  3. Change your parts to use the params
    1. Open the part-configuration where you need it
    2. Set the Param there using [Params:Name]
  4. Run the query
  5. Adjust as needed