Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have the following table:
| Date | Emp ID |
| 1/2/2019 | 325 |
| 1/3/2019 | 326 |
| 1/4/2019 | 325 |
| 1/5/2019 | 326 |
| 1/7/2019 | 401 |
| 1/8/2019 | 401 |
I'd like to get the result:
| Emp ID | Max Date |
| 325 | 1/4/2019 |
| 326 | 1/5/2019 |
| 401 | 1/8/2019 |
Does anyone know how to do this in DAX?
Solved! Go to Solution.
Hi @Anonymous ,
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.
Best Regards,
Eads
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You just need a measure to use MAX() function.
Max Date = MAX ( test[Date] )
Then you can use a table visual to get result.
Don’t summarize the value of Emp ID.
Best Regards,
Eads
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 @Anonymous ,
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.
Best Regards,
Eads
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You are right! Thank you!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 60 | |
| 45 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 109 | |
| 108 | |
| 39 | |
| 30 | |
| 27 |