Site icon i2tutorials

Amazon QuickSight – countOver

Amazon QuickSight – countOver

 

The countOver function in Amazon QuickSight is used to count the number of occurrences of a measure or dimension field in a given partition or window. The function syntax is as follows:

 

Syntax

#Start#
countOver
(
  measure or dimension field 
  ,[ partition_field, ... ]  
  ,calculation level 
)
#End#

 

This function takes the following arguments:

 

 

Here’s an example of using the countOver function in Amazon QuickSight to count the number of occurrences of a dimension field “Product” within each unique value of the “Region” partition field:

 

Example

#Start#
countOver(
    Product,
    [Region]
)
#End#

 

This will return the count of each unique “Product” value within each unique “Region” value in the dataset.

 

Exit mobile version