Skip to content

CountRows

Iterator

CountRows(table)

COUNT(*) over the named table at the query’s join grain, inside the active filter context. Additive (composes under to-date accumulation). Where a one-to-many join would double-count, the engine fails loud rather than inflating the number.

  • Plain how many rows — order lines, events, tickets — as opposed to Count(col) (non-blank values of one column).
  • Activity volume that should accumulate: YTD(CountRows(Sales), …) works because row counts are additive.
OrderLines := CountRows(Sales)