fiogf49gjkf0d I tried this but it did not work
DateDiff(dd, A1.CreateDate, Coalesce(A1.ActualClose, GetUTCDate()))
I am looking to have a group of opportunities and show how many days open for all opportunities where the status is set to open.
The above query only returned those where the status is set to close. Any advise on how to get the query to return a group from the create date to todays date? You state if the Actual Close is null it should go to todays date but this does not appear to be the case.
Any advise appreciated. |