Forum Discussion

itchyeyeballs's avatar
itchyeyeballs
Impactful Individual
9 years ago
Solved

SumX using max

Hi all,    I'm having an issue with using SumX and can't figure out what I'm doing wrong (the 'X' functions always trip me up)   I'm trying to calculate the sum of the maximum values accross grou...
  • Vvelarde's avatar
    9 years ago

    itchyeyeballs

     

    hi, just add a Calculate in Max.

     

    Measure 2 =
    IF (
        HASONEVALUE ( Table1[col2] ),
        MAX ( Table1[Value] ),
        SUMX ( VALUES ( Table1[Col2] ), CALCULATE ( MAX ( table1[value] ) ) )
    )