Forum Discussion
Anonymous
10 years agoNot applicable
Convert 24 HR time
Hi, I have a column of time data in 24 Hr time: Time 625 844 1241 1556 Where 625 is 06:25 AM. How can I convert this into a usable form for PowerBI? Thank you,
- 10 years ago
The first formula I supplied is DAX. That is the one that starts with "Column =". You use that version after you have run your query and are out of the Query Editor window and in Power BI Desktop. You go to the Data tab (middle icon on the left) and go to "Modeling" and then "New Column". That is where you would use the FIRST formula.
The SECOND formula is when you are in the Query Editor window and go to "Add Column" in the ribbon and then New Column. You seem to be using the DAX query when you should be using the M query and using the M query when you should be using the DAX query.
diego_salinas
10 years agoAdvocate I
Maybe you want to use something shorter:
Col = REPLACE([Hora],IF(LEN([Hora])=3,2,3),0,":")
:smileywink: