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
baribir
Helper I
Helper I

Average of best 10% applied filters

Hi All,

 

I want to calculate the average of top 10% rounded up, of speeds by the operator. If crew filter selected the top 10% filtered by crew and if type selected top 10% filtered by crew and type.

 

Thanks in advance.

Sample file

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@baribir 

You use this measure to get the Average of Top 10 Full Speed, Other filters will also work.

Top 10 Speed = 

AVERAGEX(
    TOPN(10,Sheet1,Sheet1[FullSpeed],DESC),Sheet1[FullSpeed]
)


 

If you are satisfied with my answer, please mark it as a solution so others can easily find it.

Don't forget to give KUDOS to replies that help answer your questions


Subscribe to ExcelFort: Learn Power BI, Power Query and Excel

 

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

5 REPLIES 5
Fowmy
Super User
Super User

@baribir 

You use this measure to get the Average of Top 10 Full Speed, Other filters will also work.

Top 10 Speed = 

AVERAGEX(
    TOPN(10,Sheet1,Sheet1[FullSpeed],DESC),Sheet1[FullSpeed]
)


 

If you are satisfied with my answer, please mark it as a solution so others can easily find it.

Don't forget to give KUDOS to replies that help answer your questions


Subscribe to ExcelFort: Learn Power BI, Power Query and Excel

 

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

harshnathani
Community Champion
Community Champion

Hi @baribir ,

 

See if this helps

 

https://www.youtube.com/watch?v=SsZseKOgrWQ

https://www.youtube.com/watch?v=UAnylK9bm1I

 

Regards,
Harsh Nathani

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

Fowmy
Super User
Super User

@baribir 

Do you need the Top 10 speeds rounded up and averaged by Operator?

Thanks

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

Average of Rounded top 10% of the count of best speeds.

@baribir 

Please check this measure:

Top 10 Speed = 
VAR T10 = COUNTROWS(Sheet1) * 0.1

RETURN
AVERAGEX(
FILTER(
    Sheet1,
     RANKX(Sheet1,CALCULATE(MAX(Sheet1[FullSpeed])),,DESC)<=T10
),
Sheet1[FullSpeed]
)

 

If you are satisfied with my answer, please mark it as a solution so others can easily find it.

Don't forget to give KUDOS  to replies that help answer your questions


Subscribe to ExcelFort: Learn Power BI, Power Query and Excel

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

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.