Fractile() finds the value that corresponds to the fractile (quantile) of the aggregated data in the expression over a number of records as defined by a group by clause.
Return data type: numeric
|expr||The expression or field containing the data to be measured.|
|fraction||A number between 0 and 1 corresponding to the fractile (quantile expressed as a fraction) to be calculated.|
Examples and results:
Add the example script to your app and run it. Then add, at least, the fields listed in the results column to a sheet in your app to see the result.
crosstable LOAD recno() as ID, * inline [
25|2 ] (delimiter is '|');
Fractile(Value,0.75) as MyFractile Resident Table1 Group By Type;
In a table with the dimensions Type and MyFractile, the results of the