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
Tiger2514555
Helper III
Helper III

Extract dates from text mixed with dates in row

Exception Message that is not Move In Rcpt or Move Out Rcpt will take the value from the Date column. If it is Move In Rcpt or Move Out Rcpt, take the date value in Move In Rcpt or Move Out Rcpt.
Tiger2514555_0-1702011318746.png

The results I want

DateException MessageResult
06/09/2023Expedited 82 Days06/09/2023
19/07/2023Move In Rcpt 16/05/202316/05/2023
20/06/2023Move Out Rcpt 02/09/202302/09/2023

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Give this a try as a calculated column on your table.

Result = 
IF ( 
    ISERROR ( DATEVALUE ( RIGHT ( YourTable[Exception Message], 10 ) ) ), 
    BLANK(), 
    DATEVALUE ( RIGHT ( YourTable[Exception Message], 10 ) ) 
)

jdbuchanan71_0-1702012333705.png

 

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

Give this a try as a calculated column on your table.

Result = 
IF ( 
    ISERROR ( DATEVALUE ( RIGHT ( YourTable[Exception Message], 10 ) ) ), 
    BLANK(), 
    DATEVALUE ( RIGHT ( YourTable[Exception Message], 10 ) ) 
)

jdbuchanan71_0-1702012333705.png

 

Oh it work thank so much sir.

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!

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.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.