I have a report that is pulling cancelled appointments. In the select expert, the formula is currently set to this:
(if dayofweek(today) = 2 then {apptcancel.canceled_datetime} in Today-2 to Today ELSE
{apptcancel.canceled_datetime} = TODAY)
This is working great with one exception. Each appointment can have multiple cancellation dates.
I have a data set that looks like this:
ApptID Canceled_DateTime
1 1/22/10
1 1/25/10
2 1/20/10
3 1/26/10
Using the formula above, it is not pulling anything. It's finding the first cancellation date for appt ID #1, which was 1/22, even though it was cancelled again on 1/25. How can I tweak this formula to find all cases cancelled today, accounting for the multiple cancellations?
Thanks for the help!
CJ
(if dayofweek(today) = 2 then {apptcancel.canceled_datetime} in Today-2 to Today ELSE
{apptcancel.canceled_datetime} = TODAY)
This is working great with one exception. Each appointment can have multiple cancellation dates.
I have a data set that looks like this:
ApptID Canceled_DateTime
1 1/22/10
1 1/25/10
2 1/20/10
3 1/26/10
Using the formula above, it is not pulling anything. It's finding the first cancellation date for appt ID #1, which was 1/22, even though it was cancelled again on 1/25. How can I tweak this formula to find all cases cancelled today, accounting for the multiple cancellations?
Thanks for the help!
CJ