Hi guys. I am a bit stuck with this one and could use your suggestions.
I have a scheduling app which is used to assign workers to a project on a specific date.
The below is a simplified version of my tables and columns:
Workers
In the scheduling app I have a form view with the following fields:
I want to filter the worker_idโs to display only the workers who have not already been assigned to a project on that date. I.e filter schedule records to match the selected date of the current record being entered, then match those worker_idโs to the worker_idโs in the worker tables then display only those which do not have matches.
Thanks for your help!
Solved! Go to Solution.
in the valid if of the workers column in the scheduling table:
filter(โWorkersโ,
NOT(
IN(
[Worker_ID], select(Schedule[Worker_ID], [Date]=[_THISROW].[Date])
)
)
)
Let us know if you have trouble understanding the expression.
in the valid if of the workers column in the scheduling table:
filter(โWorkersโ,
NOT(
IN(
[Worker_ID], select(Schedule[Worker_ID], [Date]=[_THISROW].[Date])
)
)
)
Let us know if you have trouble understanding the expression.
Thanks Pratyay! That worked perfectly. I had tried similar expressions but not in the valid if field as I thought they would still display but not allow to submit. Thanks again!
User | Count |
---|---|
40 | |
29 | |
22 | |
20 | |
15 |