Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Based on screenshot below, I need the following logic to be replicated in DAX:
IF(Job_Booking_DateTime < 12 midday, IF(hour of Job_Booking_DateTime + hours in Acceptance_Elapsed_Time <24), "Y","N"),"N")
Here is sample data file
Appreciate any help, thanks.
Solved! Go to Solution.
Hi @Anonymous ,
If this solves your problem, please mark it as a solution so that others may find it more quickly!
Thank you,
Nathaniel
Proud to be a Super User!
Hi @Anonymous ,
Try this.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
IF(Hour(Job_Booking_DateTime) < 12, IF(Hour(Job_Booking_DateTime) + Hour(Acceptance_Elapsed_Time ) <24, "Y","N"),"N")
Proud to be a Super User!
Hi @Anonymous ,
Which column would you like to use for the weekend specification.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Proud to be a Super User!
Hi @Anonymous ,
Wrap this around the above formula, and fill in the date.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
If (WEEKDAY(Date, 2) = 6 || WEEKDAY(Date,2) = 7, “”,The formula applied above)
Proud to be a Super User!
@Nathaniel_C thank you but there some blanks in Acceptance_DateTime column so how do I include IF Blank(), return " "?
Hi @Anonymous ,
If this solves your problem, please mark it as a solution so that others may find it more quickly!
Thank you,
Nathaniel
Proud to be a Super User!
I forgot to mention to exclude weekends in the formula i.e. Saturday and Sunday