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
GTPowerBIUser
Helper III
Helper III

Max Date for Employee Column

I have the following table:

 

DateEmp ID
1/2/2019325
1/3/2019326
1/4/2019325
1/5/2019326
1/7/2019401
1/8/2019401

 

I'd like to get the result:

Emp IDMax Date
3251/4/2019
3261/5/2019
4011/8/2019

 

Does anyone know how to do this in DAX?

1 ACCEPTED SOLUTION

Hi @GTPowerBIUser ,

 

I think you might have created a column instead of a measure.

In my answer, I created a measure.

The result will be wrong if you created a calculated column.333.PNG

 

Best Regards,

Eads

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @GTPowerBIUser ,

 

You just need a measure to use MAX() function.

Max Date =
MAX ( test[Date] )

Then you can use a table visual to get result.


3-1.PNG

Don’t summarize the value of Emp ID.3-2.PNG

Best Regards,

Eads

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

I wish it was that easy. When I tried that I got the max date for the entire column, not the one for the employee column. In sql I would have done something like, max([date] for [employee])

Hi @GTPowerBIUser ,

 

I think you might have created a column instead of a measure.

In my answer, I created a measure.

The result will be wrong if you created a calculated column.333.PNG

 

Best Regards,

Eads

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

You are right! Thank you!

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.