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
Roles Data
| Employee ID | Start Date | End Date | Job Title |
| Kate Willson | 1/1/2023 | 6/3/2023 | Deputy Director |
| Kate Willson | 6/4/2023 | 12/31/2040 | Director |
| Jane Doe | 1/1/2023 | 6/4/2023 | Policy Consultant |
| Jane Doe | 6/4/2023 | 12/31/2040 | Senior Policy Consultant |
| Clay Brown | 1/1/2023 | 6/5/2023 | HR Generalist |
| Clay Brown | 6/4/2023 | 12/31/2040 | Senior HR Generalist |
| Kelly Price | 1/1/2023 | 6/6/2023 | Junior Policy Consultant |
| Kelly Price | 6/4/2023 | 12/31/2040 | Policy Consultant |
Timesheet Data
| DOS | Employee |
| 1/1/2023 | Kate Willson |
| 6/4/2023 | Kate Willson |
| 6/22/2023 | Kate Willson |
| 6/23/2023 | Kate Willson |
| 3/6/2023 | Jane Doe |
| 3/7/2023 | Jane Doe |
| 6/22/2023 | Jane Doe |
| 6/23/2023 | Jane Doe |
| 1/1/2023 | Clay Brown |
| 6/4/2023 | Clay Brown |
| 6/22/2023 | Clay Brown |
| 6/23/2023 | Clay Brown |
| 3/6/2023 | Kelly Price |
| 3/7/2023 | Kelly Price |
| 6/22/2023 | Kelly Price |
| 6/23/2023 | Kelly Price |
I would like the role at the time of the DOS as a third column in the timesheet data.
Solved! Go to Solution.
you can use DAX to create a column
jobtitle = maxx(FILTER('role',role[Employee ID]=timesheet[Employee]&×heet[DOS]>='role'[Start Date]&×heet[DOS]<=role[End Date]),role[Job Title])
pls see the attachment below
Proud to be a Super User!
you can use DAX to create a column
jobtitle = maxx(FILTER('role',role[Employee ID]=timesheet[Employee]&×heet[DOS]>='role'[Start Date]&×heet[DOS]<=role[End Date]),role[Job Title])
pls see the attachment below
Proud to be a Super User!
Hello Ryan,
Thank you for your response. I was able to create a column and duplicate your results, which produced the correct title for the employee on the given DOS. I’m new to Power BI and have a lot to learn. Thank you for your prompt reply!
you are welcome
Proud to be a Super User!
Hi,
Make sure your tables are connected by an Employee ID field and then you could try a simple measure like the below:
Thank you for such a quick reply! Unfortunately, I could not get the measure to provide the correct titles. The measure would only provide Senior Policy Consultant and Policy Consultant for everyone. I’m new to using Power BI, so I may have transposed a step. I’ll keep trying to see if I can get the correct results. Again, thank you for your reply!
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.