Site icon i2tutorials

Amazon QuickSight – percentileCont

Amazon QuickSight – percentileCont

 

The ‘percentileCont()’ function in Amazon QuickSight is used to compute the continuous percentile of a measure or expression over a specified group. Here is an explanation of the percentileCont() function:

Syntax

#Start#
percentileCont(expression, percentile, [group-by level])
#End#

 

This function takes one argument:

 

 

 

Suppose we have a dataset that contains information about employee salaries in a company and we want to find the 90th percentile of salaries across all departments. We can use the percentileCont() function in Amazon QuickSight to do this.

 

To find the 90th percentile of salaries across all departments, we can create a new visual in Amazon QuickSight and add a table with the following settings:

 

 

This will result in a table that shows the 90th percentile of salaries across all departments.

 

Alternatively, we can create a calculated field in Amazon QuickSight with the following expression:

Example

#Start#
percentileCont(Salary, 0.9)
#End#

 

This expression will compute the 90th percentile of salaries across all departments.

 

For instance, if our salary data is as follows:

EmployeeDepartmentSalary
ASales60000
BSales80000
CMarketing70000
DMarketing50000
EFinance90000
FFinance100000

 

Then, the 90th percentile of salaries across all departments will be:

Example

#Start#
percentileCont(Salary, 0.9) = 98000
#End#

 

In this example, we can see that the percentileCont() function has computed the 90th percentile of salaries across all departments, resulting in a useful metric that can inform our business decisions.

 

Exit mobile version