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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
gheecalipes25
Resolver I
Resolver I

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

that worked. thanks.. 🙂

View solution in original post

4 REPLIES 4
rajendraongole1
Super User
Super User

Hi @gheecalipes25 -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!





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 @gheecalipes25 - 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!





that worked. thanks.. 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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