count

count(T.A : bool) 🡒 number, aggregator

Counts the number of Boolean values that are true.

table T = with
  [| as A, as B |]
  [| true,  "a" |]
  [| true,  "a" |]
  [| true,  "b" |]
  [| false, "b" |]
  [| true,  "c" |]

table G[gdim] = by T.B

where T.B != "c"
  show table "" a1b4 with
    gdim
    count(T.A)
    group by gdim