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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
GTL
Frequent Visitor

Total a column of Averages

Hi everyone!

 

I have created a table that is pulling from a database linked through an API. This question is regarding the average headcount column. I would like the total at the bottom to be a sum of the rows, not an average of the rows. Therefore, instead of it saying 9.10, it should say 45.67.

 

The formula feeding this column is: Average Headcount = average('Forms-Work logs'[headcount])

 

I am satisfied with the whole table except for the 9.10. Could someone please tell me how to switch that over to total instead of average. Thank you!Total Headcount.png

1 ACCEPTED SOLUTION

@GTL 

Please try

Average Headcount =
SUMX (
SUMMARIZE (
'Forms-Work logs',
'Forms-Work logs'[Project Name],
'Forms-Work logs'[Company Name]
),
CALCULATE ( AVERAGE ( 'Forms-Work logs'[headcount] ) )
)

View solution in original post

5 REPLIES 5
GTL
Frequent Visitor

Hi @GTL 

what are you slicing by in this table?

GTL
Frequent Visitor

Project name and then each row represents a different company that worked on the project that given day or over a period of days. I have another slicer in there to select date ranges.

@GTL 

Please try

Average Headcount =
SUMX (
SUMMARIZE (
'Forms-Work logs',
'Forms-Work logs'[Project Name],
'Forms-Work logs'[Company Name]
),
CALCULATE ( AVERAGE ( 'Forms-Work logs'[headcount] ) )
)

GTL
Frequent Visitor

That did it! I cannot thank you enough @tamerj1! Have a great day!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.