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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
PowerBINoob24
Resolver I
Resolver I

Transforming text to date

This is probably staring me right in the face, but I can seem to get the conversion to work.  I've loaded data from an excel file.  The columns with Date and Time data read, for example, 2025-06-20 16:23:55 UTC.

 

When I load the data into PBI, the columns show up as text.  I'm assuming it's because of the "UTC" that comes along with the Date/Timestamp.  When I try to convert the columns I just get an Error.

 

Am I doing something wrong?  Is there an easy way to convert these?

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @PowerBINoob24 

Right click a cell then click Replace Value. Replace UTC with nothing.

danextian_0-1752546746084.png

Change the type to datetime. If you need just the date, change it to type date after changing to datetime. Power Query will return an error if you change it to date directly.

danextian_1-1752546878439.png

danextian_2-1752546887006.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

Hi @PowerBINoob24 

Right click a cell then click Replace Value. Replace UTC with nothing.

danextian_0-1752546746084.png

Change the type to datetime. If you need just the date, change it to type date after changing to datetime. Power Query will return an error if you change it to date directly.

danextian_1-1752546878439.png

danextian_2-1752546887006.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi @PowerBINoob24 ,

Thank you for reaching out to the Microsoft Community Forum.

 

This issue is common when working with datetime strings that include time zone indicators like "UTC". Power BI reads such strings as text, and the "UTC" suffix can prevent automatic conversion to a proper datetime format.

 

Please follow below steps to fix the issue.

 

1. Created table "Table" with sample data. please refer below snap.

 

vdineshya_0-1752562047077.png

 

2.  In Power Query editor, Add column --> Custom column ,  and use below code. refer below snap.

 

vdineshya_1-1752562268570.png

 

3.  Custom column "Custom" was created and then select the custom column and change the data type to "Date/Time". refer the snap.

 

vdineshya_2-1752562504208.png

 

4. converted the custom column from "text" to "Date/Time" format. Please refer the output snap and attached PBIX file.

 

vdineshya_3-1752562624172.png

 

I hope this information helps. Please do let us know if you have any further queries.

 

Regards,

Dinesh

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

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.