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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rivo201
Helper I
Helper I

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.

 

 

1 ACCEPTED SOLUTION
rivo201
Helper I
Helper I

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

Thanks..

View solution in original post

2 REPLIES 2
rivo201
Helper I
Helper I

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

Thanks..

Greg_Deckler
Community Champion
Community Champion

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.