Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.