Reply
Tamila
Frequent Visitor
Partially syndicated - Outbound

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

Syndicated - Outbound

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

View solution in original post

6 REPLIES 6
avatar user
Anonymous
Not applicable

Syndicated - Outbound

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

Syndicated - Outbound

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

avatar user
Anonymous
Not applicable

Syndicated - Outbound

@Tamila  can you share the measure you wrote?

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

Syndicated - Outbound

Sorry, my mistake, here is the correct formula 

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

Syndicated - Outbound

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/
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)