indrajeet_rajput
New Member
- Joined
- Sep 7, 2024
- Messages
- 6
- Office Version
- 365
- Platform
- Windows
So, I have a column for time duration in my data from different excel files and tables which gets consolidated in power query...
But the data in the time duration column from these different files/tables is not the same, it's in these below 3 example formats:
00:24:02
00h 24m 02s
24m 02s
01h 24m 02s
01:24:02
01h 24m 02s
The first three examples represent 24 minutes and 2 seconds
The last three examples represent 1 hour, 24 minutes and 2 seconds.
The data is always in these three formats representing the time duration. And I have to do some conditional calculations and add measures using this time duration column but I can't do that unless I am able to convert it into a standard/default time format for my calculations.
Is there a way we can convert all three types in to one single time format
1)Either in excel before the data gets loaded in power query for consolidation?
2)Or in power query after its loaded for consolidation?
But the data in the time duration column from these different files/tables is not the same, it's in these below 3 example formats:
00:24:02
00h 24m 02s
24m 02s
01h 24m 02s
01:24:02
01h 24m 02s
The first three examples represent 24 minutes and 2 seconds
The last three examples represent 1 hour, 24 minutes and 2 seconds.
The data is always in these three formats representing the time duration. And I have to do some conditional calculations and add measures using this time duration column but I can't do that unless I am able to convert it into a standard/default time format for my calculations.
Is there a way we can convert all three types in to one single time format
1)Either in excel before the data gets loaded in power query for consolidation?
2)Or in power query after its loaded for consolidation?