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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.