FirstQuartile (PQL)

Executes first quartile aggregation on a column of data from the model. The column needs to have numerical data for it to be functional.

  • Returned Output: Numeric
  • Library: PQL \ Semantic \ Aggregate
  • Version: 2018.00.000
  • Compatibility: Pyramid Query Language (PQL) data sources


FirstQuartile( <Measure> )

* Click on the function's arguments above for more details on the input values.

  • The "measure" column needs to be the name of the column in the model [table].[column name] or it can be an existing measure in the model [measures].[column name].
  • For details on how to employ and use this function see the granular calculation overview.
Different Function types
  • This function is like the SQL percentile function; calculating the 25th percentile of a column of data in your query or model.
  • If you wish to find the percentile for the elements in a specified SET or LIST from a hierarchy, use this semantic function.
  • To use a simple percentile mathematical operation on a list of numbers, use the Common library function.


To create a new measure that is the third quartile of expenses in the model, using the sample demo model:

FirstQuartile( [data].[Expenses] )


FirstQuartile( [measures].[data Expenses] )

The mechanics of this function are shown below. This grid says that the 25th percentile of all expense transactions across all 'Accessory' transactions is 19.99.