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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Summarize Table by Max Value index

image.png

This is the table that I have. I'm trying to make a summary table that only grabs the rows with the largest value index. In this sample data, it would be Index value 9.

 

Thank you!

5 REPLIES 5
az38
Community Champion
Community Champion

Hi @Anonymous 

try

Table = 
var _maxIndex = CALCULATE(MAX(Table[Index]), ALL(Table))
RETURN 
FILTER(Table, Table[Index] = _maxIndex)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

@az38 

This worked great for one value, how would I modify this if I have multiple G1ROLL values with Separate index's? 

 

Here's a picture of what I'm referencing.

image.png

az38
Community Champion
Community Champion

@Anonymous 

try

Table = 
var _maxIndex = CALCULATE(MAX(Table[Index]), ALLEXCEPT(Table, Table[G1ROLL]))
RETURN 
FILTER(Table, Table[Index] = _maxIndex && Table[G1ROLL] = MAX(Table[G1ROLL]))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

@az38 

 

This had no errors but it returned no rows. There's a potential case where the indexes might have a duplicate and it would be okay if it pulls that duplicate.

az38
Community Champion
Community Champion

@Anonymous 

sorry, my bad.try

Table 2 = 
FILTER(
ADDCOLUMNS(
'Table',
"R", RANKX(FILTER('Table', 'Table'[G1ROLL]=EARLIER('Table'[G1ROLL])), 'Table'[Index], , DESC)
),
[R] = 1
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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