The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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] ) )
)
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |