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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.