Convert 24 Hr TIME

TheRevenant

New Member
Joined
Aug 13, 2016
Messages
11
I have a column of time data in 24 Hr time:
Time
625
844
1241
1566


Where 625 is 06:25 AM.


How can I convert this into a usable form for PowerBI? I tried the following DAX query in the advanced editor Column = CONCATENATE(CONCATENATE(LEFT([Time],LEN([Time])-2),":"),RIGHT([Time],2))
but receive the following message: Expression error: The name 'CONCATENATE' wasn't recognized. Make sure it's spelled correctly.
Thank you,
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
You could try this:


Excel 2010
ABCD
1Times InTimes Out
262506:25:00 AM
384408:44:00 AM
4124112:41:00 PM
5155603:56:00 PM
6
Sheet1


Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Times In", Int64.Type}}),
    AddCol_Hours = Table.AddColumn(#"Changed Type", "hours", each [Times In]/100),
    ExtractChars_Mins = Table.TransformColumns(AddCol_Hours, {{"Times In", each Text.End(Text.From(_, "en-GB"), 2), type text}}),
    #"Changed Type1" = Table.TransformColumnTypes(ExtractChars_Mins,{{"Times In", Int64.Type}}),
    RoundHours = Table.TransformColumns(#"Changed Type1",{{"hours", Number.RoundDown, Int64.Type}}),
    AddCol_Times = Table.AddColumn(RoundHours, "Times Out", each #time([hours],[Times In],0)),
    RemoveCols_AllOther = Table.RemoveColumns(AddCol_Times,{"Times In", "hours"})
in
    RemoveCols_AllOther
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,576
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top