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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
floppysock
Frequent Visitor

Average Issues

Hi all - I'm struggling to figure out how to get the averages working correctly for a data set that already has averages in. 

 

The data set - e.g. row 1 is saying Agent 1 completed 3 tasks and they averaged 3 hours each to complete (i.e. 4 hours, 3 hours and 2 hours to complete each task averaging 3 hours): 

 

Team NameAgent IDVolume CompletedAVG Hours to Complete
Team 1Agent 133
Team 1Agent 257
Team 1Agent 385
Team 1Agent 447
Team 2Agent 533
Team 2Agent 652
Team 2Agent 762
Team 2Agent 883

 

I need to create a visualisation table which will show the following, I have it all apart from the final column: 

Team NameAgent VolumeVolume CompletedAVG Hours to Complete
Team 1420?
Team 2422?

 

I know that the avg hours to complete per team will be something along the lines of: 

SUM(Volume Completed * AVG Hours to Complete) / Total Volume Completed by team 

 

But I don't know how to get this to work in PowerBI. 

 

Any help would be really appreciated! 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @floppysock 

try to plot a table visual wit the Team Name column and a measure like:

Avg = 
DIVIDE(
    SUMX(
        TableName,
        TableName[Volume Completed]*TableName[AVG Hours to Complete]
    ),
    SUM(TableName[Volume Completed])
)

 

it worked like:

FreemanZ_0-1678024273912.png

 

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

hi @floppysock 

try to plot a table visual wit the Team Name column and a measure like:

Avg = 
DIVIDE(
    SUMX(
        TableName,
        TableName[Volume Completed]*TableName[AVG Hours to Complete]
    ),
    SUM(TableName[Volume Completed])
)

 

it worked like:

FreemanZ_0-1678024273912.png

 

This is exactly what I needed - thanks so much. 

I think I need to go read up and explore the SUMX etc functions as the key lies there. 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors