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
Anonymous
Not applicable

How to calculate the Maximum and Minimum of a measure

Hello-

 

I have the below data set, i would like to get the maximum and minimum value for the Measure 

Table 1

ID    Measure 

1      5

2      6 

3      7

4      8.5

5      9

6      10

 

I can use the below formula to get the max value of 10, but when a slicer/dropdown  filter is applied for the ID then the value that i get is for the selected filter ID and not max for the whole table. What do i do so that even if a page level filter is applied then i can get the value of 10 (Max) of measure, 

Max Manage Education Score = MAXX(
    All(Table 1 [ID]),[Measure]
)
 
Thanks
1 ACCEPTED SOLUTION
Anonymous
Not applicable

I was able to find it out, it is as follows CALCULATE(MAXX(
All(Education_Metrics[Company_RecID]),[Tiered Manage Education Score]
),ALL(Education_Metrics))

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

I was able to find it out, it is as follows CALCULATE(MAXX(
All(Education_Metrics[Company_RecID]),[Tiered Manage Education Score]
),ALL(Education_Metrics))
Anonymous
Not applicable

error_3.png

Anonymous
Not applicable

Hi @MattAllington thanks for reverting back to my query, it doesnt seem to work with a measure pls see attached.error2.png

You can write CALCULATE(max(tableName[measure]),All(tableName))



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

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.

Top Solution Authors