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
Alex-PBIComm
Helper II
Helper II

Max Value of subset of table

Good morning, 

I'm trying to get the max value of a subset of the full table. Example of the dataset:

AlexPBIComm_1-1637755835998.png

 

Now if I make a table with only the first three teams, I'd like to get this result:

AlexPBIComm_2-1637755898899.png


My measure:

Measure =
CALCULATE(MAX('Table'[Value]),ALL('Table'))

But in my example that would give me 198 as result instead of 147. 

Thanks for your help!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Alex-PBIComm , Try like

 

Measure =
CALCULATE(MAX('Table'[Value]),allselected('Table'))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Alex-PBIComm , Try like

 

Measure =
CALCULATE(MAX('Table'[Value]),allselected('Table'))

Thanks @amitchandak! Always spot on 😊

 

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.