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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Tamila
Frequent Visitor

Problem with datas

Hello to all. Would greatly appreciate your help with the following matter.

I have two tables: 

1. Dates - 1.01.2016 to today (i.e. March 11, 2023)

2. Employees - list of employees with hiring and termination dates.

 

These two tables have inactive relationships dates - hiring date, dates - termination date

 

For headcount calculation, I use max('Date'[Date]).

 

For some reason max(dates) changes depending on the employee, however, should be March 11, 2023 for all employees:

 

Tamila_0-1678534780575.png

 

What could be the reason?

 

Tamila

1 ACCEPTED SOLUTION

Thank you for the suggestion, tried it, same problem(

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

@Tamila  Have you tried applying the ALLEXCEPT function to the name column?

Thank you for the suggestion, tried it, same problem(

Anonymous
Not applicable

@Tamila  can you share the measure you wrote?

Max data = CALCULATE(MAX('0. Дата'[Date]),ALLEXCEPT('0. Дата','0. Дата'[Date]))
Tamila
Frequent Visitor

Sorry, my mistake, here is the correct formula 

Max data = CALCULATE(MAX('0. Дата'[Date]),ALLEXCEPT('3. Employee','3. Employee'[Name]))
 

Hi,

Share the download link of the PBI file.  If data is confidential, anonymise the data first.  Please also show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors
Top Kudoed Authors