/    /  Amazon QuickSight – Sqrt

Amazon QuickSight – Sqrt

The sqrt function in Amazon QuickSight returns the square root of a numeric expression.

 

Syntax

#Start#
sqrt(expression)
#End#

 

This function takes one argument:

 

  • expression (required): the numeric expression to find the square root of.

 

Suppose you have a dataset containing a field with numeric values that you want to find the square root of.

 

Assume the following dataset:

 

ItemValue
Apple16
Banana25
Orange36
Pear49
Peach64
Mango81
Kiwi100

 

To find the square root of the Value field, you can use the sqrt function:

 

  • Select the dataset that you want to create a calculated field for.
  • Click on the “Add field” button.
  • Enter the following expression:

 

Example

#Start#
sqrt({Value})
#End#

 

This expression finds the square root of the Value field.

 

  • Click “Create field” to create the calculated field.

 

After creating this calculated field, you can use it for visualizations and analysis. In this example, the calculated field would have the following values:

 

ItemValueSqrt(Value)
Apple164
Banana255
Orange366
Pear497
Peach648
Mango819
Kiwi10010