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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
osabhaois
Frequent Visitor

Date data changing from custom to general in a single column

I have data from US were the dates format change in a column.

 

An example is for a date 10/01/2020 03:50 excel is recognising that it is Custom and the text is right indented

then just below that the date 9/30/2020 14:50 is left indented and excel is calling this format general.

I suspect for the second date the fact that there is a 0 missing before the 9 is an issue.

I am working in GMT

Is there a method to format the 9/30/2020 date?

 

2 REPLIES 2
Jimmy801
Community Champion
Community Champion

Hello @osabhaois 

 

check out this solution with Table.TransformColumns

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjTQNzDUNzIwMlAwMLYyNVCK1YlWUrDUNzaACBqagAVjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    Transform = Table.TransformColumns
    (
        Source,
        {
            {
                "Column1",
                each DateTime.From(_,"en-US"),
                type datetime
            }
        }
    )
in
    Transform

 

Copy paste this code to the advanced editor in a new blank query to see how the solution works.

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Fowmy
Super User
Super User

@osabhaois 

Try Locale option under Change  Type in Power Query

Fowmy_0-1602276418822.png

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.