Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
RV1
Helper I
Helper I

Tracing Employee Position History

Hi,

 

I am trying to work on a solution that provides the relevant position of an employee on any given date. I have 2 tables:

 

a. EmployeePositionHistory

b. WorkSchedule

 

Position History - EmpCode, Position, StartDate, EndDate (Blank for current position)

WorkSchedule - Empode, ScheduleDate (Last 365 days), plus other fields

 

The WorkShcedule file has a record of last 365 days for all active employees (active on that day).

Based on the EmployeePositionHistory, I would like to add a column in WorkShcedule table for the staff's position on that particular date.

 

All help will be appreciated.

 

 

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @RV1,

According to your description, it seems like a common date range analysis requirement. For this scenario, I'd like to suggest you refer to the below blog 'start date', 'end date' part if helps.

Before You Post, Read This 

In addition, you can also try to create a bridge table to expand the detail date records and mapping with the raw table. After these, you can simply do analysis or calculate with raw table records.

Solved: Spread revenue across period based on start and en... - Microsoft Power BI Community

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @RV1,

According to your description, it seems like a common date range analysis requirement. For this scenario, I'd like to suggest you refer to the below blog 'start date', 'end date' part if helps.

Before You Post, Read This 

In addition, you can also try to create a bridge table to expand the detail date records and mapping with the raw table. After these, you can simply do analysis or calculate with raw table records.

Solved: Spread revenue across period based on start and en... - Microsoft Power BI Community

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.