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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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'))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Alex-PBIComm , Try like

 

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak! Always spot on 😊

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors