The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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!
Solved! Go to Solution.
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] ) )
)
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.
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] ) )
)