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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
jhauw74
Helper I
Helper I

Getting the maximum date from rows

Hi - I am stuck on how I can get the max date based on the rows in a table :

 

jhauw74_0-1691030020846.png

I'd like to be able to identify that max date row as 1 and the rest as 0.

Beent trying using earlier but doesn't seems to work - any help greatly appreciated.

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Write this calculated column formula

Flag of max date = 1*(Data[Effective Date]=calculate(max(Effective date),filter(Data,Data[Employee ID]=earlier(Data[Employee ID])))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
jhauw74
Helper I
Helper I

Thank you @Ashish_Mathur the formula works 😀

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

Write this calculated column formula

Flag of max date = 1*(Data[Effective Date]=calculate(max(Effective date),filter(Data,Data[Employee ID]=earlier(Data[Employee ID])))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ahmedx
Super User
Super User

pls show expected output

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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