Forum Discussion

bourne2000's avatar
bourne2000
Icon for Helper V rankHelper V
4 years ago
Solved

How to calculate the time difference between date and time?

Hi

 

I have two problems. My data source is a CSV file. It has two columns called BookingStart and BookingEnd

 

 

1) My first problem when I imported my CSV file into Power BI and date and time is mismatching as below

 

For example, the first-row actual booing date is 16.11.2021 but it shows 17.11.2021. Also, the time is 13:08 pm but it shows 2.08 am. Can anyone advise how to fix this?

 

2) My second problem,

 

I need to create a new minutes column between booking end time and booking start time. I can able to add columns and subtract in the Power query. But the average minute's values are not matching properly. It's not recognizing am/pm properly.

Can anyone help with this?

 

Thanks

 

5 Replies