cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shantupm5
Helper III
Helper III

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_0-1686147456787.png

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@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] )

 

View solution in original post

1 REPLY 1
jdbuchanan71
Super User
Super User

@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] )

 

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors