Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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
Solved! Go to Solution.
@bourne2000 for 2nd one, use duration.totalminutes function
Duration.TotalMinutes ( [Start Column] - [End Column] )
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@bourne2000 for 2nd one, use duration.totalminutes function
Duration.TotalMinutes ( [Start Column] - [End Column] )
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@bourne2000 can you change the type from date time to time zone and then in the next step-change it to datetime. let's first check that.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@parry2k Thanks
When I converted into timezone
However when I tried to convert back to date/time, the values are changing
Please advise
@parry2k It's working thanks. I just extracted time into separate columns
Can you advise my second question. If I do subtract, then I am getting negative values. I need to create total hour column and total minutes column from the end and start date
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |