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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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