Description
The MAXX
function calculates a value for each row in a table, and then finds the maximum of the calculated values.
Usage
MAXX(TABLE_EXPR, EXPRESSION)
Example
You can use the MAXX
function in a pivot table to find the oldest beneficiary.
For example, if you had a quantity field in your form with AGE
of the beneficiary, then you could write:
MAXX([Beneficiaries], AGE)
The second argument can be expression in a row context, for example if we wanted to find the average of our beneficiaries at particular moment in time, we could write:
MAXX([Beneficiaries], YEARFRAC([Date of Birth], DATE(2023,1,1)))
This finds the oldest beneficiary age on January 1st, 2023.