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
jbakerstull
Regular Visitor

Return Value is text need value as Date

Hi all, 

 

I using the following formula in a column to return max start date per client. The formula works as intended but value is text based, I need it to be date value. Any help would be apperiated.  

 

LatestEntryDate = CALCULATE (
    MAX ( Client[Start_Date] ),
    ALLEXCEPT ( Client, Client[Clients Personal ID] ))
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @jbakerstull 

It depends. But try to wrap it with DATEVALUE function 

LatestEntryDate =
DATEVALUE (
CALCULATE (
MAX ( Client[Start_Date] ),
ALLEXCEPT ( Client, Client[Clients Personal ID] )
)
)

View solution in original post

5 REPLIES 5
jbakerstull
Regular Visitor

Thanks for the reply, following error message populated when I place in Datevalue

 

 

jbakerstull_0-1685992003377.png

 

tamerj1
Super User
Super User

Hi @jbakerstull 

It depends. But try to wrap it with DATEVALUE function 

LatestEntryDate =
DATEVALUE (
CALCULATE (
MAX ( Client[Start_Date] ),
ALLEXCEPT ( Client, Client[Clients Personal ID] )
)
)

The error is now gone. I tested the created column against the Client (tbl) start date using formula below. I believe the error has been fixed. I'm just trying to fiqure out how to test the fix. 

Formula tested was

Match Dates = if(Client[ClientlatestEntry]=Client[Start_Date],1,0)

@jbakerstull 

Please try

Match Dates =
IF ( [ClientlatestEntry] = MAX ( Client[Start_Date] ), 1, 0 )

Added Datevalue populated the folling error message:

Too many arguments were passed to the DATEVALUE function. The maximum argument count for the function is 1.

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.