Fix the reference date and source boundary.
State the database type, timezone, snapshot time and permitted source view before building formulas. A workbook refreshed at one moment cannot be reconciled to a database queried at another without recording both timestamps.