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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Marcin
Helper V
Helper V

DAX filter with data

Hi,

 

 I have table with users where is column named "First Contract Date" , some are empty, type Date. 

 

I need make calculation with another table "Events"  where is hours time measure bo using only users with First Contract Date earlier than today. 

 

I made this 

CALCULATE( [Working Days]*8 - ([Days Vacation]+[Days Vacation S]+[Days Sick])*8 - [Hours Projects] - [Hours Sales], FILTER(Users, Users[First Contract Date] < NOW()))

 

Unfortunately I is not working, shows Hours for all users without filtering. 

2 REPLIES 2
v-huizhn-msft
Employee
Employee

Hi @Marcin,

If there is relationship between your two tables?  'all users without filtering' means that the FILTER written in DAX didn't affect your measure? Could you please share more details or sample table as @vanessafvg said? So that we can post the solution which is close to your requirements.

Thanks,
Angelia

vanessafvg
Super User
Super User

@Marcin

 

can you give some examples of the data with teh firstcontractdate, your new column

 

is this all in one table?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.