Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello I need help please. I wanted to get the duration it takes from dispatch and arrival to store and my first problem is dispatch date and dispatch time are on seperate columns same with arrival to store and I cant combine them to a single column and from there my plan was to compute the duration from the 2 combined columns or if anyone has a better way
Solved! Go to Solution.
Hi @ranz_vincent - You can create new columns to combine the dispatch date with dispatch time and arrival date with arrival time.
DispatchDateTime =
'Table'[dispatch_date] + 'Table'[dispatch_time]
Combine Arrival Date and Time
ArrivalDateTime =
'Table'[arrival_date] + 'Table'[arrival_time]
Once you have the DispatchDateTime and ArrivalDateTime columns, you can calculate the duration between them
Duration =
DATEDIFF('Table'[DispatchDateTime], 'Table'[ArrivalDateTime], MINUTE)
This formula calculates the duration in minutes. You can replace MINUTE with SECOND, HOUR, or DAY depending on your preferred unit of time.
Hope this helps.
Proud to be a Super User! | |
Hi @ranz_vincent ,
Thanks rajendraongole1 for the quick reply and solution. In addition to creating calculated columns in Desktop, you can also create new columns in Power query.
(1)Add column->merge column.
(2) Change column type.
(3) Add a custom column.
If you need minutes, use it:
Duration.TotalMinutes([arrival]-[dispatch])
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sorry I got side tracked from other tasks but thanks a lot for this i tried both suggestions and they worked great so thanks again.
Hi @ranz_vincent ,
Thanks rajendraongole1 for the quick reply and solution. In addition to creating calculated columns in Desktop, you can also create new columns in Power query.
(1)Add column->merge column.
(2) Change column type.
(3) Add a custom column.
If you need minutes, use it:
Duration.TotalMinutes([arrival]-[dispatch])
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sorry I got side tracked from other tasks but thanks a lot for this i tried both suggestions and they worked great so thanks again.
Hi @ranz_vincent - You can create new columns to combine the dispatch date with dispatch time and arrival date with arrival time.
DispatchDateTime =
'Table'[dispatch_date] + 'Table'[dispatch_time]
Combine Arrival Date and Time
ArrivalDateTime =
'Table'[arrival_date] + 'Table'[arrival_time]
Once you have the DispatchDateTime and ArrivalDateTime columns, you can calculate the duration between them
Duration =
DATEDIFF('Table'[DispatchDateTime], 'Table'[ArrivalDateTime], MINUTE)
This formula calculates the duration in minutes. You can replace MINUTE with SECOND, HOUR, or DAY depending on your preferred unit of time.
Hope this helps.
Proud to be a Super User! | |
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 37 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 29 | |
| 27 | |
| 25 |