Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
I am trying to use an IF statement to calculate if someone was on time for an appointment. 15 mins either side of appointment
time is considered as on time, anything else is late.
If appointment is at 17:00 then anything between 16:45 - 17:15 is ontime.
Trying this -> Late = IF(OTIF[TimeFrom] > OTIF[DutyTimeFrom] * 1.25,"Late",IF(OTIF[TimeFrom] < OTIF[DutyTimeFrom] * .75,"Late","OnTime") ). Not getting any errors but results are incorrect.
I am using this statement when adding a new column in Report view.
Solved! Go to Solution.
Try this...
Late = IF (OTIF[DutyTimeFrom]<OTIF[TimeFrom]-1/24*.25,"Early",IF (OTIF[DutyTimeFrom]>OTIF[TimeFrom]+1/24*.25,"Late","On Time"))
Try this...
Late = IF (OTIF[DutyTimeFrom]<OTIF[TimeFrom]-1/24*.25,"Early",IF (OTIF[DutyTimeFrom]>OTIF[TimeFrom]+1/24*.25,"Late","On Time"))
Works perfectly. Thank you very much.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.