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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Timestamp format

 

Hi,

 

 

timestamp.PNG

 

Using Add column I have extracted the time in a seperate column from timestamp, but format is like 0. + 24hr formart time, How to remove 0. from the begining and insert a proper time formate like 14.52.00

1 ACCEPTED SOLUTION

Hi, @Anonymous 

Please try to change type and select the locale of origin.

1.png

1.png

Best Regards,
Community Support Team _ Eason

View solution in original post

6 REPLIES 6
danextian
Super User
Super User

hI @Anonymous ,

danextian_0-1650959767548.png

 


As tested, 14.52.00 is a text format in Power Query. If you really want the time values to appear this way, you can convert the duration column into text (Text.From), extract the hour, minute and second elements (Text.BetweenDelimiters, etc) and then re-combine them with a period in between each element.





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.
vojtechsima
Super User
Super User

Hi, @Anonymous ,
That's strange, could you please share those lines so I can copy it to my power bi and try to recreate your exact issue with your data please?






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.
Anonymous
Not applicable

4/25/2022 2:05:20 PM +00:00

 

Data type is: date/time/timezone

Hi, @Anonymous 
I did test it on my own and I can't replicate your issue:

Make sure, you put "en" as culture argument when you're choosing the date/time/timezone data type. And then you create new column like this:

vojtechsima_0-1650958388706.png

 



Here's my Query, you can copy it to your Blank Query in Power Query and see for yourself:

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtE3MtU3MjAyUjCyMjC1MjJQCPBV0DYwsDIwUIqNBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Date = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type datetimezone}},"en"),
    #"Inserted Time" = Table.AddColumn(#"Changed Type", "Time", each DateTime.Time([Date]), type time)
in
    #"Inserted Time"

 






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.
Anonymous
Not applicable

Thanks, the table is from ADX (kusto) and the method is directQuery so I used add column and extracted time from it, but the output was odd. I will try with your Query and check

Hi, @Anonymous 

Please try to change type and select the locale of origin.

1.png

1.png

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.