Site icon i2tutorials

Amazon QuickSight – stdev

Amazon QuickSight – stdev

 

The stdev() function in Amazon QuickSight is a statistical function that calculates the standard deviation of a measure. Standard deviation is a measure of the amount of variation or dispersion of a set of values from the mean.

 

Syntax

#Start#
stdev(measure, [group-by level])
#End#

 

This function takes the following arguments:

 

 

Suppose you have a sales dataset with the following fields: Date, Product, Sales, and Region. You can use the stdev() function to calculate the standard deviation of sales for the entire dataset. Here’s an example formula:

 

Example

#Start#
stdev(Sales)
#End#

 

This formula calculates the standard deviation of the Sales field for the entire dataset. This function can help you identify the level of variability of sales in the dataset.

You can also use the group-by parameter to calculate the standard deviation by region. Here’s an example formula:

 

Example

#Start#
stdev(Sales, Region)
#End#

This formula calculates the standard deviation of the Sales field for each region in the dataset. This function can help you identify which regions have higher or lower variability in sales compared to others. Note that if you want to calculate the sample standard deviation, you should use the stdevp() function instead.

 

Exit mobile version