iosiflupis
New Member
- Joined
- Jan 26, 2022
- Messages
- 39
- Office Version
- 365
- Platform
- Windows
Hello all,
I have run up against a wall. I am trying to convert a 4-digit number to time. I have 4 columns; Sched Dep Time, Act Dep Time, Sched Arr Time, and Act Arr Time. The two Sched columns have times in every cell in the row in the files that I am running the query on. The two Act Arr columns might not have time in a cell, as this indicates that the flight was canceled. When I load and start transforming the data it is pulled in as "null".
The steps that I am applying are:
1. Change type to text and replace values (null to "0000")
2. Split the column by the number of characters (once, as far right as possible)
3. Change the type back to number
4. Merge Columns with a colon as a delimiter
5. Change the type to Time
This is working for the first three columns, Sched Dep Time, Act Dep Time, and Sched Arr Time. However, when I repeat the process for the column Act Arr Time I get an error [Expression.Error] We couldn't parse the input provided as a Time value. This ONLY happens on the Act Arr Time column. Could someone please tell me what I am doing wrong here?
I did ask for help yesterday on how to remove specific characters in specific cells. I received an answer but couldn't understand where to insert it.
I have run up against a wall. I am trying to convert a 4-digit number to time. I have 4 columns; Sched Dep Time, Act Dep Time, Sched Arr Time, and Act Arr Time. The two Sched columns have times in every cell in the row in the files that I am running the query on. The two Act Arr columns might not have time in a cell, as this indicates that the flight was canceled. When I load and start transforming the data it is pulled in as "null".
The steps that I am applying are:
1. Change type to text and replace values (null to "0000")
2. Split the column by the number of characters (once, as far right as possible)
3. Change the type back to number
4. Merge Columns with a colon as a delimiter
5. Change the type to Time
This is working for the first three columns, Sched Dep Time, Act Dep Time, and Sched Arr Time. However, when I repeat the process for the column Act Arr Time I get an error [Expression.Error] We couldn't parse the input provided as a Time value. This ONLY happens on the Act Arr Time column. Could someone please tell me what I am doing wrong here?
I did ask for help yesterday on how to remove specific characters in specific cells. I received an answer but couldn't understand where to insert it.