Forum Discussion
Super Weird Time Column
- 4 years ago
Hi Thigs
First off, it looks like you are missing the square brackets on some of your references to the Time column, which is likely the cause of the error.
Secondly, you can simplify the code by using Text.PadStart.
The code in the Custom Column dialog box would look like:
Custom Time = Text.PadStart( [Time], 6, "0" )I'm assuming Time is a text column by the way.
Regards,
Owen
Hi Thigs
First off, it looks like you are missing the square brackets on some of your references to the Time column, which is likely the cause of the error.
Secondly, you can simplify the code by using Text.PadStart.
The code in the Custom Column dialog box would look like:
Custom Time
= Text.PadStart( [Time], 6, "0" )
I'm assuming Time is a text column by the way.
Regards,
Owen
This worked! Thanks a bunch, I hadn't heard of that formula but it worked perfectly!