Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Expert,
I have a data set which is the list of employees, their department and slary. The table looks like below:
| Employee ID | Department | Salary |
| A | HR | 100 |
| B | HR | 200 |
| C | IT | 100 |
| D | Marketing | 300 |
| E | Marketing | 400 |
| F | Admin | 300 |
| G | Admin | 400 |
| H | Admin | 200 |
I wan to create a new table (not the visualization in the canva) which summaries the headcount, total labor cost and average labor cost of each department.
| Department | Total Labor Cost | Headcount | Av. Labor Cost (Total Labor Cost/Headcount) |
| HR | 300 | 2 | 150 |
| IT | 100 | 1 | 100 |
| Marketing | 700 | 2 | 350 |
| Admin | 900 | 3 | 300 |
Is it possible to use the DAX to achieve that?
Many thanks!
Best regards,
Tom
Solved! Go to Solution.
@TomLU123 Please create a New Table as below
Test270Out = SUMMARIZE(Test270Summarize,Test270Summarize[Department],"TotalLabourCost",SUM(Test270Summarize[Salary]),"HeadCount",COUNT(Test270Summarize[Employee ID]),"AvgLabourCost",AVERAGE(Test270Summarize[Salary]))
Proud to be a PBI Community Champion
@TomLU123 Please create a New Table as below
Test270Out = SUMMARIZE(Test270Summarize,Test270Summarize[Department],"TotalLabourCost",SUM(Test270Summarize[Salary]),"HeadCount",COUNT(Test270Summarize[Employee ID]),"AvgLabourCost",AVERAGE(Test270Summarize[Salary]))
Proud to be a PBI Community Champion
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.