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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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