[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-22 UTC."],[],[],null,["# NARY_MAX\n\n`NARY_MAX` is similar to `MAX`, except that it lets you compare multiple values.\n\nSample usage\n------------\n\n`NARY_MAX(Event_1, Event_2``, Event_3)`\n\nSyntax\n------\n\n NARY_MAX(\u003cvar translate=\"no\"\u003eX\u003c/var\u003e, \u003cvar translate=\"no\"\u003eY\u003c/var\u003e, [,\u003cvar translate=\"no\"\u003eZ\u003c/var\u003e]*)\n\n### Parameters\n\n- \u003cvar translate=\"no\"\u003eX\u003c/var\u003e`, `\u003cvar translate=\"no\"\u003eY\u003c/var\u003e`, `\u003cvar translate=\"no\"\u003eZ\u003c/var\u003e - fields or expressions to be evaluated.\n\nExample 1\n---------\n\nThis example shows how you can mix fields, calculations, and literals in an `NARY_MAX` function:\n\n`NARY_MAX(REVENUE, (COST * 2), 10, SESSIONS))`\n\nExample 2\n---------\n\nSuppose you want to determine the maximum sales for your 3 sales regions by date and that your data looks like this:\n\nYou could use the `NARY_MAX` function to determine the maximum sales for a given date:\n\nNotes\n-----\n\n`NARY_MAX` requires at least 2 arguments. At least one argument must be a field or an expression containing a field.\n\n`NARY_MAX` works on numeric fields or expressions only. If you apply this function to other data types, you'll get an error.\n\nRelated resources\n-----------------\n\n- [NARY_MIN](/looker/docs/studio/narymin)\n- [Calculated fields](/looker/docs/studio/about-calculated-fields)\n- [Looker Studio function list](/looker/docs/studio/function-list)"]]