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
Anonymous
Not applicable

How to convert text data to Date

Hi,

 

Need some help. i have a column in the table (excel datasource) where the EOS date column has texts on it (N/A, Not Announced)? what would be the best dax formula approach for this one?

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

that worked. thanks.. 🙂

View solution in original post

4 REPLIES 4
rajendraongole1
Super User
Super User

Hi @Anonymous -create a calculated column that replaces the text values with a specific date

 

EOS Date Cleaned =
IF(
ISERROR(DATEVALUE([EOS date])),
BLANK(),
[EOS date]
)

 

Hope it works

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





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

Proud to be a Super User!





Anonymous
Not applicable

I did the formula above and is getting me error:

 

gheecalipes25_0-1721928872779.png

 

 

the EOS Date column has values as such below:

gheecalipes25_1-1721928915313.png

 

Hi @Anonymous - Can you try below calculated column

 

EOS Date Cleaned =
VAR IsValidDate =
    NOT(ISERROR(DATEVALUE([EOS Date])))
RETURN
    IF(
        IsValidDate,
        DATEVALUE([EOS Date]),
        DATE(1900, 1, 1) // or BLANK() if you prefer
    )

 

rajendraongole1_0-1721929653302.png

 

with Blank()

rajendraongole1_1-1721929722449.png

 

 

 

Hope it works

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





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

Proud to be a Super User!





Anonymous
Not applicable

that worked. thanks.. 🙂

Helpful resources

Announcements
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.

June 2025 community update carousel

Fabric Community Update - June 2025

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