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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jonclay
Helper IV
Helper IV

Problem with finding latest date per customer in DAX

Hi everyone

I'm trying to find the latest date per customer using DAX but I'm hitting a problem. The example below shows the fields ContactID, Position, DateAdded, LatestDate

jonclay_0-1680181054386.png

I'm using the following DAX fomula, and in this case I'd expect the final column to show 07/02/2023 (i.e. the latest DateAdded for the particular ContactID).

Max_Date = Var _Name = MAX(TableName[ContactID])
Return
Maxx(FILTER(ALL(TableName),TableName[ContactID] = _Name),TableName[DateAdded])

Could anyone please tell me what I'm doing wrong and how to resolve this issue?

Many thanks
Jon



 

1 REPLY 1
HotChilli
Super User
Super User

I don't think we're getting the full information here. e.g. why is there a LatestDate and  a Max_Date?

Can you put a small sample pbix together and post a link here please?

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