For the progress bar, the minimum and maximum can be defined by either fixed values or a data source (dataset or script). Just as for the main value the first entry of the given dataset/script will be used if the columns contain more than one entry.
The data source you use for min/max is affected by dashboard filters in the same way the data source for the main value is.