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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Pricef1
Regular Visitor

Time calculation to predict end time

Could not find a solution that was similar to what I need. I am not sure how to calculate the end time for a particular item. Basically we have a start time (ex. 08:15am) with a 7.5hr cycle, to be removed at (15:15PM). How can I use Power BI to calculate: Time In x Cycle Time = Removal Time?

Pricef1_0-1687803780520.png

 

1 ACCEPTED SOLUTION

I hope this works, I just divided Cycle Time by 24 (here 24 is hours in a day)

HamedM1125_0-1687819132653.png

 

View solution in original post

8 REPLIES 8
HamedM1125
Advocate III
Advocate III

Hi @Pricef1 ,

You can do this in M query but before that you need to have Date and Time columns combined.

After combining it, create a custom column in M query as:
= [Date] + #duration(0,0,0,27000) 
--here 27000 is in seconds (7.5 hours)

HamedM1125_0-1687808948420.png

Result:

HamedM1125_1-1687809082232.png

 

 

 

Thanks,

Hamed

https://www.linkedin.com/in/hamed-mohammed-6aa073197/

Or would i need to somehow convert cycle time in a seperate column and then refence that column?

Is there a way to have it update automatically? For example not all cycle times are the same. Could vary from 6hrs to 7.5hrs depending on product. Time in * Cycle Time / ?????? maybe?

I hope this works, I just divided Cycle Time by 24 (here 24 is hours in a day)

HamedM1125_0-1687819132653.png

 

Pricef1_0-1687821459807.png

Modified just slightly and it gave me the exact times I was looking for!! Thank you for your help

Awesome! Please mark my reply as a solution 🙂 

sevenhills
Super User
Super User

Tune to your needs:

 

DAX way

Removal Time = 'Table'[Time In] + Time(7, 30, 0)

 

M Query way

= Table.AddColumn(#"Changed Type", "Removal Time", each [Time In] + #duration(0, 7, 30, 0), type time)

 

Hope this helps

VijayP
Super User
Super User

@Pricef1 

Question is not clear!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors