Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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!
Solved! Go to Solution.
@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
Proud to be a 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
Proud to be a Super User! |
|
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!