Skip to content

KeepFilters

ContextCalculate modifier

KeepFilters(predicate)

KeepFilters(pred) is identical to writing the bare predicate in Calculate — it adds a filter that intersects with the outer context. It exists so filter intent can be spelled explicitly; both forms compile the same.

  • Readability in review-heavy models — KeepFilters(...) says this narrows, it does not override out loud. Behavior is identical to the bare predicate.
OpenSRCount := Calculate(
Count(ServiceRequest.Id),
KeepFilters(ServiceRequest.Status = "Open")
)