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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Get max value of a row. exclude top 10 %

Hi,

I'm trying to think of how to dynamically get the max value of the remaining 90% if I exclude the top 10 % higest values of a column.

I've solved getting the average for the remaining by counting number of rows minus 90 % number of rows (rounddown), then dividing sum of my column with the with the previous calculation.

 

hope that was understandable.

Wondering if anyone has any ideas on how to solve this?

Would be great to show it as a kpi.

 

Thanks!

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Anonymous , You can try that using DAX and creating a measure

 

Max Remaining 90% =
VAR TotalRows = COUNTROWS('YourTable')
VAR RowsToExclude = ROUNDUP(TotalRows * 0.1, 0)
VAR RemainingRows = TotalRows - RowsToExclude
VAR RemainingMax = CALCULATE(MAX('YourTable'[YourColumn]), 'YourTable'[YourColumn] <= PERCENTILE.INC('YourTable'[YourColumn], 0.9))
RETURN RemainingMax




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@Anonymous , You can try that using DAX and creating a measure

 

Max Remaining 90% =
VAR TotalRows = COUNTROWS('YourTable')
VAR RowsToExclude = ROUNDUP(TotalRows * 0.1, 0)
VAR RemainingRows = TotalRows - RowsToExclude
VAR RemainingMax = CALCULATE(MAX('YourTable'[YourColumn]), 'YourTable'[YourColumn] <= PERCENTILE.INC('YourTable'[YourColumn], 0.9))
RETURN RemainingMax




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors