Site icon i2tutorials

Amazon QuickSight – periodToDatePercentileCont

Amazon QuickSight – periodToDatePercentileCont

 

The periodToDatePercentileCont() function in Amazon QuickSight is a statistical function that calculates the percentile value for a measure over a specified period of time. It uses continuous percentile calculation, which is more precise than discrete percentile calculation, particularly when you are working with large datasets.

 

Syntax

#Start#
periodToDatePercentileCont(
    measure, 
    percentile, 
    dateTime, 
    period, 
    endDate (optional)
)
#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 periodToDatePercentileCont() function to calculate the 90th percentile of sales for the current day by region. Here’s an example formula:

 

Example

#Start#
periodToDatePercentileCont(Sales, 0.9, Date, 'day', now(), Region)
#End#

 

This formula calculates the 90th percentile of the Sales field for the current day, grouped by Region. The now() function is used to specify the current date and time as the end date. This function can help you identify the highest sales values for the day in each region and compare them to the 90th percentile of the data, with a higher degree of precision than the periodToDatePercentile() function.

 

Exit mobile version