Forum Discussion
kabra_ashish
Helper III
6 years agoFinding MAX in each category
Need some quick help. I have a table in my data model as below: Record Name Dates Transactions (#) 1 A Jan-01-2020 ...
- 6 years agoYou could try this as a calc column:
IsMax - IF( 'Table1'[Transaction] a MAXX(FILTER(ALL('Table1'), 'Table1'[Name] ? EARLIER('Table1'[Name])), 'Table1'[Transaction]), "Yes", "No")
kabra_ashish
Helper III
6 years agoThanks Anonymous
However it throws and error in the variable created. Its says "Too few arguments were passed to the MAXX function. The minimum argument count for the function is 2."
Anonymous
6 years agoNot applicable
HI kabra_ashish ,
I missed adding Table[Transactions]
Maximum Transaction =
VAR _max =
MAXX (
FILTER (
'Table',
'Table'[Name]
= EARLIER ( 'Table'[Name] )
),
Table[Transaction]
)
RETURN
IF (
'Table'[Transaction] = _max,
"Max Value",
BLANK ()
)
Also, the solution from AllisonKennedy will work.
Regards,
Harsh Nathani