Functionscount_distinctVersion: v4.23On this pagecount_distinctCounts all distinct non-null grouped values.count_distinct(xs:list) -> intDescriptionThe count_distinct function returns the number of unique, non-null values in xs.xs: listThe values to count.ExamplesCount distinct valuesfrom [ {x: 1}, {x: 2}, {x: 2}, {x: 3}, ] summarize unique=count_distinct(x){unique: 3}See Alsocount, distinct