Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
83 | |
66 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |