Are you trying to pass all 4 parameters dynamically?
Do the two dates represent static values for start and end range of period for function in question?
Here is some information on embedding parameters:
Hi John, are you passing the parameters using the custom SQL editor? If so, see this: Connect to a Custom SQL Query
If you followed those steps correctly and are still getting the error, could you share the error text with us?
Thank You David for the Reply.It was helpful.
You're welcome! Glad it helped!
Thank You Dhanashree, It was for the the Desktop.