Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |