Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
saad_mce
Helper I
Helper I

Excel to power query clock/time issue

Hi all,

I have below data in excel. This is the start and end time of a production order in SAP.

Schedule StartStart TimeSchedule FinishFinish Time
10.01.202222:05:3510.01.202224:00:00

When I read the data in power query, it converts the finish time 24:00:00 to 12 AM of the same day. 

Start Date        Start Time    Finish Date     Finish Time

10/01/202210:05:35 PM10/01/202212:00:00 AM

How do I get power query to keep the clock in 24 hours version like the excel hours? Or How do I convert finish time to 12 AM of the following day? Any suggestion is much appreciated.

Regards,

Abrar

1 ACCEPTED SOLUTION
visheshjain
Impactful Individual
Impactful Individual

Hi @saad_mce,

I think you will need to add a conditional column that if time is greater than 23:59:59 then add 1 to the Finish Date.

Ideally, 24:00:00 is equivilant to 00:00:00, which is when the next day begins.

You can also try converting the time into a numeric value by multiplying it by 24*60*60 = 86,400 and then adding the conditional column.

I think PQ works faster on numbers than any other data type.

 

Hope this helps.

 

Thank you,

Vishesh Jain

Did I answer your question?
If yes, then please mark my post as a solution!

Thank you,
Vishesh Jain

Proud to be a Super User!



View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @saad_mce ,


Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.


Best Regards,
Stephen Tao

Hi Stephen,

Apologies for late response.

I work on powerbi reports on a monthly basis. I did not have a chance to come back to this report earlier.

The conditional column solution suggested by @visheshjain worked better.

Regards,

Abrar

 

Anonymous
Not applicable

Hi @saad_mce ,

 

The first method is to change the data type of the time column to text.

vstephenmsft_0-1645431480183.png

 

The second method is that if you mainly want the report to show 24-hour time, you can also use the h:nn:ss format to change the format of the time column after loading into Power BI.

vstephenmsft_1-1645431675732.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

visheshjain
Impactful Individual
Impactful Individual

Hi @saad_mce,

I think you will need to add a conditional column that if time is greater than 23:59:59 then add 1 to the Finish Date.

Ideally, 24:00:00 is equivilant to 00:00:00, which is when the next day begins.

You can also try converting the time into a numeric value by multiplying it by 24*60*60 = 86,400 and then adding the conditional column.

I think PQ works faster on numbers than any other data type.

 

Hope this helps.

 

Thank you,

Vishesh Jain

Did I answer your question?
If yes, then please mark my post as a solution!

Thank you,
Vishesh Jain

Proud to be a Super User!



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors