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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Calculate Minimum Average after column value

Hi all, 

I' am doing a sport analysis in which i need to calculate an average of best efforts in specific sports drills. 

 

So, I'm looking towards caluating a average of minimum time spend on a drill after player_name.

=

Player_nameTotal_timeMinimum_timeAvg ((10+30)/2)
X x101020
X x201020
X x301020

Y y

303020
Y y403020
Y y503020

 

 

Cheers, 


/M

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Please try this expression in your measure in a table visual with Player_Name (and any other columns).

 

Avg Time =
AVERAGEX (
    ALL ( Times[Player_name] ),
    CALCULATE (
        MIN ( Times[Total_time] ),
        ALLEXCEPT (
            Times,
            Times[Player_name]
        )
    )
)

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

4 REPLIES 4
mahoneypat
Microsoft Employee
Microsoft Employee

Please try this expression in your measure in a table visual with Player_Name (and any other columns).

 

Avg Time =
AVERAGEX (
    ALL ( Times[Player_name] ),
    CALCULATE (
        MIN ( Times[Total_time] ),
        ALLEXCEPT (
            Times,
            Times[Player_name]
        )
    )
)

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Absolute legend @mahoneypat , thx!

 

//M

amitchandak
Super User
Super User

@Anonymous , Create a measure like

averageX(values(Table[Player_name]), calculate(Min(Table[Total_time])))

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
Anonymous
Not applicable

Hi,

Thanks for the effort! 🙂

 

That doesn't return a single AVG. The AVG varies row for row. It should be the same for the whole table as the AVG should be calculated for the whole table meaning AVG of minimum-time after player = Óne value for all rows, as they are subject to the same table avg.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.