Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi!
I have an Excel spreadsheet which contains a list of phone calls received, and the durations of those calls. The durations are displayed as HH:MM:SS, for example:
00:00:21
00:00:13
00:01:06
00:02:06
I would like to remove the starting '00:' from the data, as the phone calls will never exceed 59 minutes so the '00:' isn't needed (and is making my visual difficult to read).
I have tried splitting the column by delimiter, number of characters, and position... but Power BI is disregarding some 0s in each cell and producing strange results like:
00: 0
00: 0
00: 1
00: 2
I have also tried extracting data from the column by characters, range and delimiters, but get similarly strange results. I even tried adding a column from examples, but this doesn't work either.
I would like the data to look like this:
00:21
00:13
01:06
02:06
Is there any way to achieve this in Power BI (possibly need to use DAX)? Or will I need to change this in my original Excel file?
Thank you!
Solved! Go to Solution.
In Power Query:
Text.End( [Duration],5 ) -- Replace [Duration] with the name of your column
In DAX
Thank you so, so much for your help @rsbin and apologies for my late reply! I have just tried your solution and it's worked perfectly. Thank you again for your help, I would never have figured this out on my own 🙂
In Power Query:
Text.End( [Duration],5 ) -- Replace [Duration] with the name of your column
In DAX
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
82 | |
74 | |
66 |
User | Count |
---|---|
121 | |
105 | |
102 | |
82 | |
72 |