I am trying to use the Formula (Date) in a saved search for leads and I'm stuck on the function.
We need to display the Activity Date for the next activity where status = Scheduled and if one does not exist then the Activity Date should be blank in the results. I can't use the Activity Status as Criteria because we want to include all leads regardless of Activity Status but we want to display the date when an activity status = Scheduled.
I have had success in the past with users helping me put the formula together. I have no experience with Formulas and Functions so I'm hoping someone can help me.
I think I should use the Dense Rank function but I'm not sure what I need to do after this.
DENSE_RANK() OVER (PARTITION by expr [,expr...] ORDER BY expr [ DESC | ASC ] [ NULLS { FIRST | LAST } ] [,expr [ DESC | ASC ] [ NULLS { FIRST | LAST } ] ]... )
Thanks in advance for your help.