Forum Discussion

shantupm5's avatar
shantupm5
Helper III
3 years ago
Solved

MAX Function

I have a measure which i have created and result of the measure is something like this. I need to find out Max value out of this output.

 

 Accuracy
Customer 199.97%
Customer 299.82%
Customer 399.82%
Customer 499.96%
Customer 599.97%
Customer 699.66%

 

However i get below error message

 

 

  • shantupm5 

    You need to look at the MAXX function.  It works like this.

    If you have a measure that calculates sales 

    Sales = SUM ( Sales_Table[Sales Amount] )

    And you want the MAX Sales amount across all customers it would be

    Max Sales = MAXX ( Values ( Customer[Customer Number] ), [Sales] )

     

1 Reply

  • shantupm5 

    You need to look at the MAXX function.  It works like this.

    If you have a measure that calculates sales 

    Sales = SUM ( Sales_Table[Sales Amount] )

    And you want the MAX Sales amount across all customers it would be

    Max Sales = MAXX ( Values ( Customer[Customer Number] ), [Sales] )