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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.