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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.