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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Super User
Super User

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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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