Site icon i2tutorials

Amazon QuickSight – avgOver

Amazon QuickSight – avgOver

 

The avgOver function in Amazon QuickSight is used to calculate the average of a specified measure over a set of partitions. The syntax of the function is as follows:

 

Syntax

#Start#
avgOver
(
     measure 
     ,[ partition_field, ... ] 
     ,calculation level 
)
#End#

 

This function takes the following arguments:

 

 

Suppose you have a dataset containing sales data for a company. The dataset has the following fields: Date, Product, Region, and Sales. You want to calculate the average sales per product, partitioned by region. The formula would be:

 

Example

#Start#
avgOver(Sales, [Region], "cell")
#End#

 

This would give you the average sales for each product in each region.

 

Exit mobile version