Greg_Deckler
Community Champion
6 years agoLookup Min/Max
This one or some variation of it comes up constantly in the forums so I'm surprised that there is no pattern in the Quick Measure Gallery for dealing with it. The problem generally goes along the lin...
AlexisOlson
Super User
3 years agoGreg_Deckler Iterator X-functions are great but you can also do this without them.
Lookup Max =
VAR _TopRow = TOPN ( 1, VALUES ( 'Table'[Item] ), CALCULATE ( SUM ( 'Table'[Value] ) ) )
VAR _TopItem = SELECTCOLUMNS ( _TopRow, "Item", 'Table'[Item] )
RETURN
_TopItem