Hi,
I have a formula that needs to count how many candidates are booked on a course, and then to change the status to "Full" once the max capacity is reach. The max capacity is defined by a separate data source that holds the venues' details.
My formula is struggling to recognise a number from a LookUp. If I bypass the LookUp and type the number in my formula, it works, but each venue has a different capacity.
The format of the column my formula is Patching is Text.
If(CountRows(Filter(Class_registrations,Course_ID=ThisItem.Course_ID And 'Attendance Type'="Candidate"))>=
LookUp(ODP_Courses_Lists,Course_ID_Number= ThisItem.Course_ID,Max_Cand) ,
Patch(ODP_Courses_Lists,LookUp(ODP_Courses_Lists,Course_ID_Number=ThisItem.Course_ID),
{Course_Status:"Full"}))

Thanks, Andy