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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Calculated column max date

How would I make a calculated column for Latest Customer Renewal Date in this case?

 

CustomerProductRenewal dateLatest Customer Renewal Date (desired column)
AChair4/15/204/20/20
AChair4/20/204/20/20
BChair5/2/205/10/20
BChair5/10/205/10/20
1 ACCEPTED SOLUTION
camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

Try this code for a calculated column:

 

MaxDate = CALCULATE(MAX('Table'[Renewal date]); FILTER('Table'; 'Table'[Customer] = EARLIER('Table'[Customer])))


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

2 REPLIES 2
camargos88
Community Champion
Community Champion

Hello @jack421 ,

Try this code for a computed column:

MaxDate á CALCULATE(MAX('Table'[Renewal date]); FILTER('Table'; 'Table'[Customer] - EARLIER('Table'[Customer])))


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

Try this code for a calculated column:

 

MaxDate = CALCULATE(MAX('Table'[Renewal date]); FILTER('Table'; 'Table'[Customer] = EARLIER('Table'[Customer])))


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors