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

View all the Fabric Data Days sessions on demand. View schedule

Reply
srhooey
Regular Visitor

Percentile What If calculation

I have been asked to do this in Power BI.  The following table shows a Representation of my data.

 

Grouping IdentifierValueWhat If Value
A105
A157.5
A2010
A105
B92.86
B185.71
B3611.4
B206.35
C1212
C55
C22
C33
   
25th Percentile8 

 

I actually have hundreds of Grouping Identifiers with thousands of data points for each identifier.

 

The column "Value" represents the actual value.  As you can see the 25th Percentile for these values is 8.  Say we have a target of 5 for the 25th percentile.

 

The column "What If Value" represents what each record might look like if we managed to reduce the actual value by a ratio to get that Grouping Identifer to the target of 5 for the 25th Percentile.  The Grouping Identifier of "C" was not modified because it already met the target 25th percentile.

 

These two columns have already been calculated in Power Query.

 

My task is to determine the overall 25th percentile if we managed to get the reach target with specific underperforming Grouping Identifiers.

 

Effectively

If "Grouping Identifer" selected, use "What If Value" in the Percentile.inc else use "Value" in the Percentile.inc

 

I've tried many approaches and can't get any to work.  The selections of "Grouping Identifers" to use in the adjustment may be one or many.

 

Thanks in advance

 

 

1 REPLY 1
amitchandak
Super User
Super User

@srhooey , Are you trying like this

PERCENTILE.INC(Table[value], [what if measure] )

 

or

measure =

var _max = maxx(allselected(whatif), whatif[value])

return

PERCENTILE.INC(Table[value],_max )

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

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
Top Kudoed Authors