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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I am currently using this formula to calculate a value,
Solved! Go to Solution.
I hate to be the bearer of bad news, but I'm assuming from the syntax that this is a calculated column. Therefore the PERCENTILE.INC function is calculating over the entire column, not just for 18-29 females in Phase 1. If you want to calculate over a limited population in a calculated column you should probably use PERCENTILEX.INC over a filtered set of data.
You could do something like the following to capture the phase of the current row and then calculate the percentile within that population. (note I'm also using variables to avoid repeatedly calculating the percentile values)
eg.
Reslnc_F_18 - 29 = VAR _currentRowPhase = 'D Star Survey'[phases] VAR _25Percentile = PERCENTILEX.INC ( FILTER ( 'D Star Survey', 'D Star Survey'[phases] = _currentRowPhase && 'D Star Survey'[Age_group] = "18 - 29" && 'D Star Survey'[Gender] = "Female" ), 'D Star Survey'[Survey Score - Copy], 0.25 ) VAR _75Percentile = PERCENTILEX.INC ( FILTER ( 'D Star Survey', 'D Star Survey'[phases] = _currentRowPhase && 'D Star Survey'[Age_group] = "18 - 29" && 'D Star Survey'[Gender] = "Female" ), 'D Star Survey'[Survey Score - Copy], 0.75 ) RETURN IF ( 'D Star Survey'[Age_group] = "18 - 29", IF ( 'D Star Survey'[Gender] = "Female", IF ( MAX ( 'D Star Survey'[Observation Date] ), IF ( 'D Star Survey'[Survey Score - Copy] > _25percentile && 'D Star Survey'[Survey Score - Copy] < _75percentile, "Moderate", IF ( 'D Star Survey'[Survey Score - Copy] <= _25percentile, "Low", IF ( 'D Star Survey'[Survey Score - Copy] >= _75percentile, "High", "" ) ) ) ) ) )
I hate to be the bearer of bad news, but I'm assuming from the syntax that this is a calculated column. Therefore the PERCENTILE.INC function is calculating over the entire column, not just for 18-29 females in Phase 1. If you want to calculate over a limited population in a calculated column you should probably use PERCENTILEX.INC over a filtered set of data.
You could do something like the following to capture the phase of the current row and then calculate the percentile within that population. (note I'm also using variables to avoid repeatedly calculating the percentile values)
eg.
Reslnc_F_18 - 29 = VAR _currentRowPhase = 'D Star Survey'[phases] VAR _25Percentile = PERCENTILEX.INC ( FILTER ( 'D Star Survey', 'D Star Survey'[phases] = _currentRowPhase && 'D Star Survey'[Age_group] = "18 - 29" && 'D Star Survey'[Gender] = "Female" ), 'D Star Survey'[Survey Score - Copy], 0.25 ) VAR _75Percentile = PERCENTILEX.INC ( FILTER ( 'D Star Survey', 'D Star Survey'[phases] = _currentRowPhase && 'D Star Survey'[Age_group] = "18 - 29" && 'D Star Survey'[Gender] = "Female" ), 'D Star Survey'[Survey Score - Copy], 0.75 ) RETURN IF ( 'D Star Survey'[Age_group] = "18 - 29", IF ( 'D Star Survey'[Gender] = "Female", IF ( MAX ( 'D Star Survey'[Observation Date] ), IF ( 'D Star Survey'[Survey Score - Copy] > _25percentile && 'D Star Survey'[Survey Score - Copy] < _75percentile, "Moderate", IF ( 'D Star Survey'[Survey Score - Copy] <= _25percentile, "Low", IF ( 'D Star Survey'[Survey Score - Copy] >= _75percentile, "High", "" ) ) ) ) ) )
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.