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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.