I have an activity (Claim Denial,) here I'm trying get the count of activities got paid after the Claim Denial,. payment happened before Denial and after denial as well, but I need to consider the first payment made after the Denial, it can be many payment as well and payment activities we have 5 different type. also payment span should be >= 60.
days between(First Denial date , first payment date(after the denial)>=60
payment A- 01/01/2021
Denial- 02/01/2021
Payment B-03/01/2021
PU_FIRST works for First Denial but for Payment if we use PU_FIRST it will look for the Payment A but it should take Payment B date