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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Using PERCENTILE.INC inside CALCULATE/FILTER returning nothing

Hello! I am building a dashboard which trims outlier data from a year's worth of hourly data. I am using PERCENTILE.INC to replicate Excel's TRIMMEAN, filtering the bottom and top 10th percentile and creating a new average.

 

If I enter static values into my DAX measure, it works, but if I refer to my PERCENTILE.INC measures, it gives me nothing. Examples below.

 

PERCENTILEINC Puzzle.png

I read the below article stating that the function just doesn't work inside CALCULATE, and I should consider creating a variable. I don't know much about variables yet, so unsure if this is the best solution or how best to approach it. Any help appreciated, I want to keep my measure dynamic to changes to the values of these PERCENTILE measures.

 

https://community.powerbi.com/t5/Desktop/PERCENTILE-inside-CALCULATE-does-not-anymore-recognise-data...

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 


Please check this measure, enter the correct table, and measure 

 

Trimmed funnel average conversion = 

VAR 10PC = [10TH PERCENTILE VISIT CONVERSION]
VAR 90PC = [90TH PERCENTILE VISIT CONVERSION]

RETURN
CALCULATE ( 
	[AVERAGE FUNNEL MEAURE]
FILTER ( 
	FLOSE_METRICS,
	[FUNNEL VISIT CONVERSION] > 10PC &&
	[FUNNEL VISIT CONVERSION] < 90PC
)

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Anonymous 


Please check this measure, enter the correct table, and measure 

 

Trimmed funnel average conversion = 

VAR 10PC = [10TH PERCENTILE VISIT CONVERSION]
VAR 90PC = [90TH PERCENTILE VISIT CONVERSION]

RETURN
CALCULATE ( 
	[AVERAGE FUNNEL MEAURE]
FILTER ( 
	FLOSE_METRICS,
	[FUNNEL VISIT CONVERSION] > 10PC &&
	[FUNNEL VISIT CONVERSION] < 90PC
)

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

@Fowmy thanks! Seems simple now.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors