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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.