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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
gheecalipes25
Helper III
Helper III

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors