The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Within Power Query, I need to create a new date column called Planned Exit Date that calculates as below:-
If [PlannedExitTime] (time format) is less than [PlannedEntryTime] (time format) then +1 day to [PlanndVisitDate]
Can someone please help me?
Solved! Go to Solution.
try
If ... then Date.AddDays([PlannedVisitDate],1) else ...
Thank you that has worked - I really appreciate your help @Greg_Deckler @Einomi
@spandy34 Maybe:
= if [PlannedExitTime] < [PlannedEntryTime] then [PlannedVisitDate] + 1 else [PlannedExitTime]