Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello,
I have problem finding average employees work experience by position. I have two tables: Employees and Contracts.
Employees table:
EmpID
Name
Surname
Date of employment
Date of dismissal
Contracts table:
EmpID
Position
Department
Dax measure for employees work experience:
Work experience = YEARFRAC(Employees[Date of employment],Employees[Date of dismissal])
Example:
Employee Position Work experience
Emp1 CEO 10,1
Emp2 Administrator 2
Emp3 Administrator 8
Emp4 Administrator 6
Desired DAX measure result (measure will be used in column diagram):
CEO average experience = 10
Administartor average experience = 5.3
Solved! Go to Solution.
@Anonymous , is one of the two measures not working
Average(Employees[Work experience])
AverageX(Employees,YEARFRAC(Employees[Date of employment],Employees[Date of dismissal]))
@Anonymous , is one of the two measures not working
Average(Employees[Work experience])
AverageX(Employees,YEARFRAC(Employees[Date of employment],Employees[Date of dismissal]))
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
26 | |
20 | |
18 | |
14 | |
13 |
User | Count |
---|---|
43 | |
36 | |
24 | |
22 | |
21 |