Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello
I am using DAX I found on a forum to help me calculate Response Time between two dates, only within working hours and on working days. Below, you can see the DAX and some results:
It's not giving me the expected result, and I'm not sure why. In the example highlighted yellow, the call was created on 03/04/23 at 14:54 and we arrived on the 04/04/23 at 10:51. The number of working hours (08:30-17:00, Mon-Fri) between the two dates/times is circa 4.2 hours, but I'm getting a result of 2.4 hours. All the results are lower than they should be. Please can you help me figure out why? I adapted this DAX from something I found in a forum, so I am perhaps missing the logic behind something. The clock should just count hours within those working hours, stopping at 17:00 and starting again at 08:30 the following day.
DAX pasted below, if it helps... Many Thanks!
Solved! Go to Solution.
@CMoppet I did this once: Net Work Duration (Working Hours) - Microsoft Fabric Community
@CMoppet I did this once: Net Work Duration (Working Hours) - Microsoft Fabric Community
As an add on, when I did it, I got errors because some of my rows have no start date or time. And it didn;t seem to like that. For the rows without any dates, I just want blank results....
Hello 🙂 I've already tried your method today! It didn't like me! All my results were 510...for every row. I couldn't figure out why! Anything obvious wrong with the different approach I used above?
Hello again! Just one more thing....I really want to make your method work, and add in something that recognises if a date is in my Holidays list, as we shouldn't count internal response time on those dates. Is this possible, please? Thank you
Just tried it again....not sure what I'm missing...
@CMoppet So, did you get it to work? It's marked as solved so I just wanted to follow up and see if you were able to get it to work.
Hello 🙂 Unfortunately not. I get the same result for every row of data. I presume I'm not adapting it properly for my data, but I can't see where the issue is. I marked it as 'Solved' as I am trying a different approach. I'd still be so grateful if you can see where I'm going wrong with your solution, as the alternative I've found runs really slowly...
@CMoppet OK, post a sample of your data as text or a link to the PBIX file if possible.
Hello 🙂 I'm unable to attach a file or link due to security. I have opened your pbix file attached the the NetWorkDuration post you linked, so I could try and figure out the issue, but I'm finding the same problem there too....it's giving the same results for each row. What am I doing wrong??!! , and yet I'm getting the same result for them all!