Forum Discussion

rivo201's avatar
rivo201
Helper I
6 years ago
Solved

DAX Filtering

Hi All

 

EDIT: (changed question format)

 

I have two tables: 

 

Employee information on what position he worked at period of time.

 

EmployeeIDPositionValidFromValidTo
1Engineer01/01/201401/12/2016
1Manager01/12/201631/12/2154

 

Employee workhours table by dates

EmployeeIDHoursDate
11001/02/2014
11002/02/2014
11003/02/2014
11007/02/2014
11008/02/2014
11008/02/2018
11009/02/2018
11010/02/2018
11015/02/2018
11016/02/2018

 

How can i get the correct or current time employee postion to workhours table?

I know i have to check : IS Workhours.Date between ValidFrom and ValidTo ,If TRUE -> Get me Postion value

How to put it in DAX. Thank you.

 

 

  • For me the topic is not finished for finding solution with DAX - but for now I solved the problem using SQL.

    Thanks..