I am trying to format the column to data type "duration" in PowerBI. In order to do this, I need to remove the YYYY-MM-DD which appeared after the data load. Im guessing that the inconsistencies are due to some values being in this format: -3:34 and orders in this: 10:43:00
This is how the column looks in powerbi:
This is how it looks in Excel before the import to powerbi:
I have tried to "replace values" in powerquery, which gives me this result:
Once I change the datatype to "duration" and "apply and load" it gives me this result:
I am expecting the result to be -02:03, 03:01. Negative values indicate an early delivery and positive values indicate a late delivery. e.g. 2h 3 min early or 3h 1 min late. Column needs to be in some form of time data type since I am planning to do calculations etc.
Any suggestions on how to solve this? Some form of table.replace()
? I tried table.replace
but got errors. the dax function Substitute works but I want to be able to delete one of the columns since the substitute will give me a new column.