• You can write a SQL query that calculates this value and use this query to populate a default value for the parameter.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP