Power BI - How to Average a Sum

thomaslovell

New Member
Joined
Mar 29, 2013
Messages
21
Please help.

I am working in Power BI.

My primary data table has a variable called "Distance" which is recorded within three levels: "Session", "Athlete" and "Drill".

In other words, within each Training Session, multiple Athletes participate in multiple drills, all of which have an associated distance. For example:

SessionAthleteDrillDistance
MondayBob JonesWarm Up1000
MondayBob JonesConditioning5000
MondayJames PetersWarm Up800
MondayJames PetersConditioning4800

<tbody>
</tbody>


I would like to visualise this data with the Total Distance per Athlete per Session, and finally, Average Total Distance for the session.

SessionAthleteTotal Distance
MondayBob Jones6000
MondayJames Peters5600

<tbody>
</tbody>


When visualising this data, I can only choose either Sum or Average. If I sum the Distance, it will Sum all athletes for the session. Alternatively, if I average the distance, it will Average the distance for each drill within the session.

Is it possible to FIRST sum the distance for each player within the session, and THEN average this summed distance?

Thankyou
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
You will want something like:

=AVERAGEX (
VALUES ( Table[Athlete] ),
CALCULATE ( SUM ( Table[Distance] ) )
)
 
Upvote 0

Forum statistics

Threads
1,215,018
Messages
6,122,703
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top