I need to calculate how long people have been on a waiting list.
They are considered to be on the waiting list if they meet this criteria: 1) Assessment greater than 60 days ago and 2) No cancellation within the past 60 days.
I am able to calculate those values using a series of queries and end up with a table that shows MinOfAssessment Date and MaxOfCancelled Date for those who meet the criteria.
I want a third field that displays the newest of these two dates. I have tried this:
WL StartDate: IIf([MaxOfCancelled Date] Is Null, [MinOfAssessment Date],[MaxOfCancelled Date])
It doesn't work. I know I had this working in an earlier iteration of the db, but now I cannot repeat it. Ideas? I also want to write an expression that tells me how long the person has been on the waiting list and used:
Days on WL: Date()-[WL Start Date]
That works in some queries, but not the one that contains the wait list as I have described it, with the min and max column. I think my problem has to do with not being able to add a third calculated column but I can't find a way around this.