--- title: "Use the MAXOF Function to Return the Largest Value of a Block" slug: "maxof-function" description: "Learn to use the MAXOF function for to retrieve a Block's highest value in Pigment, with practical use case examples." tags: ["MAXOF", "Largest Value ", "Block Management", "functions ", "formula syntax", "Pigment Blocks", "Pigment Boards", "Modeling and Formulas"] updated: 2025-05-28T10:24:26Z published: 2025-08-22T12:00:18Z canonical: "kb.pigment.com/maxof-function" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.pigment.com/llms.txt > Use this file to discover all available pages before exploring further. # MAXOF function ## ​​​Description Returns the highest value of a Block. ## Syntax `MAXOF(Block)` ## Arguments | Argument | Type | Dimensions | Description | | --- | --- | --- | --- | | *Block* (required) | Integer, Number or Date | Any | If *Block* is a Date, the function returns the latest date. For Number or Integer, it will return the highest value. | ## Returns | Type | Dimensions | | --- | --- | | Same Type as argument *Block* | No Dimension | ## Examples Employee is a Dimension List: | Formula | Result | Description | | --- | --- | --- | | `MAXOF(Employee.ID)` | 3 | ![](https://cdn.document360.io/e47cfe35-dc28-40c7-a083-6cf003073d8e/Images/Documentation/3ae7cf1d-1f19-490a-bcc8-b502837cf26e.png?sv=2026-02-06&spr=https&st=2026-11-24T12%3A37%3A27Z&se=2026-11-24T13%3A37%3A27Z&sr=b&sp=r&sig=0zmBjVL2QV9RIjqQMNCosd8AfGEAbMJiIrcTLHnCXzg%3D) 3 is the highest number from this block. | | `MAXOF(Employee.'Start date')` | 12/14/2024 | Returns the latest start date from the block. | ## See also Related articles: [MINOF](/v1/docs/minof-function), [SUMOF](/v1/docs/sumof-function) > [!TIP] > **More of a hands-on learner?** > > Talk to your Customer Success Manager about downloading the Functions and Modifiers in Pigment Application into your workspace. It includes examples of every formula and modifier in Pigment!