Hi.
Here are two simple tables, Customers and CustomersDetails.
UID | customer_name | first_date |
---|---|---|
aa9915bb | cus_a | 7/20/2023 |
UID | customer_id | date |
---|---|---|
04e4f12a | aa9915bb | 7/25/2023 |
I set customer_id in CustomersDetails as a Ref column of Customers. I intend to add revisits info like date to Customers table as Related Items. I also added “last_date” as a virtual column to Customers table, and applied the formula below to check when I visited the customer for the last time.
IF(ISBLANK([_THISROW].[Related CustomersDetails]),
[_THISROW].[first_date],
LOOKUP(
MAXROW(
"CustomersDetails",
"date",
([customer_id] = [_THISROW].[UID])
),
"CustomersDetails","UID","date"
)
)
This formula works correctly when editing, but last_date automatically updated to first_date a few seconds later after saving. I don’t know why that.
ex. last_date shows 7/25/2023 when editing, but it is changed to 7/20/2023 a few seconds later after saving.
I might miss something simple, but I need your help.