diff --git a/docs/content/querying/aggregations.md b/docs/content/querying/aggregations.md index 4c487f4fda5..d6a029cfc9d 100644 --- a/docs/content/querying/aggregations.md +++ b/docs/content/querying/aggregations.md @@ -146,23 +146,23 @@ SELECT COUNT(*) FROM ( SELECT DIM1, DIM2, DIM3 FROM GROUP BY DIM1, **Example** -Determine the number of distinct categories items are assigned to. +Determine the number of distinct countries people are living in or have come from. ```json { "type": "cardinality", - "name": "distinct_values", - "fieldNames": [ "main_category", "secondary_category" ] + "name": "distinct_countries", + "fieldNames": [ "coutry_of_origin", "country_of_residence" ] } ``` -Determine the number of distinct are assigned to. +Determine the number of distinct people (i.e. combinations of first and last name). ```json { "type": "cardinality", - "name": "distinct_values", - "fieldNames": [ "", "secondary_category" ], + "name": "distinct_people", + "fieldNames": [ "first_name", "last_name" ], "byRow" : true } ```