Hi community fellows,
I have a question about my formula that I set in a column
Right now i have 2 table, 1 I called APPROVAL table as shown below
| id | working_type | start_date | end_date |
|---|
and the other one is TIMESHEET
| id | id_approval | working_date |
|---|
I’ve put a formula in the Valid_if section of the column [end_date] and [start_date] to check if the end date is already on the list of [working_date] in TIMESHEET table. It looks something like this
IFS(
[working_type] = "Regular (Làm Bù)",
NOT(
IN(
[_THIS],
SELECT(
TIMESHEETS[working_date],
[_THISROW].[email] = [email]
)
)
),
AND(
[working_type] <> "Regular",
[working_type] <> "Regular (Làm Bù)"
),
NOT(
IN(
[_THIS],
SELECT(
TIMESHEET_OT[working_date],
[_THISROW].[email] = [email]
)
)
)
)
When I test to type in the data in a form, Appsheet always gives me “[end_date] is invalid” error.
The error doesn’t happen when I change the [working_type] to something not “Regular” and also the formula in valid_if of [start_date] doesn’t run into any error even though I put the same formula in [start_date] and [end_date]