Forum Discussion
spandy34
3 years agoResponsive Resident
Calculating time Midnight
I have the table below. I have a Plannned Entry Time and a Planned Exist Time and a Planned Duration which are all Time fields. I have used the following formula for the Planned Duration Column P...
- 3 years ago
THis has solved it - thank you so much for your help
Planned Duration =IF([PlannedExitTime] = TIME(0,0,0),(TIME(23,59,59)- 'Procurement_Main_Data'[PlannedEntryTime])+TIME(0,0,1),[PlannedExitTime] - [PlannedEntryTime])
Greg_Deckler
3 years agoCommunity Champion
spandy34 Is this being done in Power Query?
- spandy343 years agoResponsive Resident
No not power query . I just added the column in the table imported from an sql database
- Greg_Deckler3 years agoCommunity Champion
spandy34 OK, try this:
Planned Duration = IF( [PlannedExitTime] = TIME(0,0,0), (TIME(23:59:59) - [PlannedEntryTime) + TIME(0,0,1), [PlannedExitTime] - [PlannedEntryTime] )- spandy343 years agoResponsive Resident
THis has solved it - thank you so much for your help
Planned Duration =IF([PlannedExitTime] = TIME(0,0,0),(TIME(23,59,59)- 'Procurement_Main_Data'[PlannedEntryTime])+TIME(0,0,1),[PlannedExitTime] - [PlannedEntryTime])