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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
WittigLyon
New Member

Getting Maximum date selected from date column

Hi everyone, i'm trying to get the latest date selected in a new column

my data is structured like;

 

Employee_name | Hire date    | Latest date

Wittig Lyon         |   1/1/2023  | 

Wittig Lyon         |   5/4/2023  |

Wittig Lyon         |   9/8/2023  |  9/8/2023

Henry                 |   31/1/2023  | 

Henry                 |   12/9/2023  |  12/9/2023

Henry                 |   1/9/2023  | 

 

i`d love to have the Latest date be populated with the latest date of each employee thereby having 9/8/2023 as the value populating the latest date column for Wittig Lyon and 12/9/2023 for Henry 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@WittigLyon , for a new column

 

New col=

var _max = maxx(filter(Table, [Employee_name] = earlier([Employee_name]) ), [Hire Date])

return

if( [Hire_date] = _Max, [Hire_date], blank())

 

For measure use

Latest
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee8...

 

Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Ritaf1983
Super User
Super User

Hi @WittigLyon 

Add calculated column with the formula :

last date = if('Table'[ Hire date    ]=CALCULATE(max('Table'[ Hire date    ]),ALLEXCEPT('Table','Table'[Employee_name ])),[ Hire date    ],blank())
 
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @WittigLyon 

Add calculated column with the formula :

last date = if('Table'[ Hire date    ]=CALCULATE(max('Table'[ Hire date    ]),ALLEXCEPT('Table','Table'[Employee_name ])),[ Hire date    ],blank())
 
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
amitchandak
Super User
Super User

@WittigLyon , for a new column

 

New col=

var _max = maxx(filter(Table, [Employee_name] = earlier([Employee_name]) ), [Hire Date])

return

if( [Hire_date] = _Max, [Hire_date], blank())

 

For measure use

Latest
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee8...

 

Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.