Creating a report based on a view using parameters

Hallo,

i have created a report based on a view. The where clause of the view containts a fixed value. for ex : where QtyDays = 5 and ...

Our customer wishes that the fixed value becomes variable and act like a parameter.

My tought was to create a function with parameter. Creating the function and use it like a view is no problem in the report builder.

I have only one problem : how (if possible) can i pass parameters to the function ?

Thanks for the advice.